Giter VIP home page Giter VIP logo

aspnet_webapi2_multipipeline's Introduction

AspNet_WebApi2_MultiPipeLine

A small ASP.NET app that demonstrates how to configure a WEB API project to have multiple piplines and specify what controllers to use for each. Requires Fiddler or POSTMAN to test.

Built using VS2015 Community.


####Description There are a number of ways to create multiple piplines (dividing your controllers into specific “areas”). This app demonstrates 2 ways.

No. Description
1. By placing our controllers into a different assembly and implementing IAssembliesResolver to define which assemblies to load when looking for controllers.
2. By deriving our contollers from different base classess and implementing DefaultHttpControllerTypeResolver to define which controllers are selected.

This example is setup to initially implement segregation using base classes with 'DefaultHttpControllerTypeResolver'.


####To Test

No. Step
1. Open the project in visual studion 2015 and press ctrl-f5 to run
2. In Fidler, issue either of the following GET requests
A http://localhost:[YOUR_PORT_NUMBER_HERE]/admin/test
B http://localhost:[YOUR_PORT_NUMBER_HERE]/public/test

Be sure to replace the port number.

Examine the messages returned


####Resources

No. Source Author
1 Running multiple ASP.NET Web API pipelines side by side Filip W.
2 Customizing controller discovery in ASP.NET Web API Filip W.

aspnet_webapi2_multipipeline's People

Contributors

pauljamesmillar avatar pj-mill avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.