Feedback on ASP.NET Web API

Replace Dispatcher in Web Host Scenarios

Enable the ability to replace the http controller dispatcher in asp.net web host scenarios; In the beta, it is not possible.

I would like to still leverage the http handler functionality, but I want the ability to replace the dispatcher with my own dispatcher.

For example, we could replace the existing controller dispatcher with the the GlobalConfiguration.Dispatcher propoerty. Today, it is statically typed to HttpControllerDispatcher and is read-only, but you could see a scenario where this could be typed to HttpMessageHandler and writable to the user.

14 votes
Vote
Sign in
(thinking…)
Password icon
Signed in as (Sign out)
You have left! (?) (thinking…)
Dave Bettin shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
completed  ·  Daniel Roth responded  · 

When you configure your Web API routes you can specify a message handler for that route in the MapHttpRoute extension method.

0 comments

Sign in
(thinking…)
Password icon
Signed in as (Sign out)
Submitting...

Feedback and Knowledge Base