How to get a list of resellers in ASP.NET 5

How do I get a list of active resellers? How do I get a list of intermediaries for a specific URL (each URL can have a different set of intermediate elements added to the pipeline)?

I would like to know which intermediaries are added using some of the common builder extensions, such as UseMvc() or app.UseIdentity();

I know that I can check the source code of each extension. Is there any way to accomplish this?

+5
source share
1 answer

No, you can’t. When you add middleware to the pipeline, it is resolved by Func<RequestDelegate, RequestDelegate> . Components are stored in a private field in ApplicationBuilder . However, you could bake an extension method with some reflection magic to determine the actual type of intermediate layer, but this is not trivial.

0
source

All Articles