autofac / Autofac.Owin

OWIN integration for Autofac
MIT License
23 stars 15 forks source link

Provide the ability to control middleware execution order in the OWIN integration #4

Closed tillig closed 9 years ago

tillig commented 9 years ago

From @alexmg on April 2, 2014 12:1

The order of middleware is currently determined based on the order of registration. A mechanism needs to be provided to control this order. The ability to add stage markers also needs to be considered when solving this issue.

Copied from original issue: autofac/Autofac#510

tillig commented 9 years ago

Stage markers are specific to hosting in IIS, which is probably something we'd want to not involve by default to leave the hosting open.

From the comment chain in this article it appears that registration order is the only ordering mechanism available. Which kind of sucks, but kind of makes sense, too.

As such, I'm not sure we can do too much to aid here other than providing some documentation on how to use the OWIN integration.

tillig commented 9 years ago

For reference purposes, here's the article talking about stage markers in the IIS pipeline.

tillig commented 9 years ago

I think this is addressed with PR #3.