Is there an official way to create multiple service providers from one web host? #27420
Unanswered
the-avid-engineer
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently you can use
app.MapWhen(...)
to have a per-route middleware stack. Unfortunately, these middlewares all share the same service provider.I found this issue on the old repository: aspnet/Mvc#5326
@rynowak responded in part
That was four years ago.. I'm curious if that experimenting has gotten anywhere? I'm not sure where to look for this kind of thing.
Someone made a workaround, but I'm not particularly keen on the idea because it creates additional web hosts. https://www.strathweb.com/2017/04/running-multiple-independent-asp-net-core-pipelines-side-by-side-in-the-same-application/
Beta Was this translation helpful? Give feedback.
All reactions