aspnet / HttpAbstractions

[Archived] HTTP abstractions such as HttpRequest, HttpResponse, and HttpContext, as well as common web utilities. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
382 stars 194 forks source link

Change MiddlewareFactory to type activate IMiddleware as a fallback #988

Closed davidfowl closed 6 years ago

davidfowl commented 6 years ago
khellang commented 6 years ago

This means you're able to activate IMiddleware instances without them being registered in the container first, i.e. by just doing Use<TMiddleware> where TMiddleware implements IMiddleware?

davidfowl commented 6 years ago

@khellang yap