Currently, on web api, the dispatcher/final message handler can be defined by passing it to the HttpServer ctor.
IMHO, it makes more sense to define this information on the configuration (instead of passing it directly to the HttpServer), namely because:
1) Everything else is defined via configuration
2) The presence of this information on the configuration allows its usage by configuration extensions, namely one to create per-route pipelines that always end on this common message handler
Comments: Dispatcher is being used by the HttpServer, so it is better to have it associated with httpconfiguration.
IMHO, it makes more sense to define this information on the configuration (instead of passing it directly to the HttpServer), namely because:
1) Everything else is defined via configuration
2) The presence of this information on the configuration allows its usage by configuration extensions, namely one to create per-route pipelines that always end on this common message handler
Comments: Dispatcher is being used by the HttpServer, so it is better to have it associated with httpconfiguration.