Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

interface Microsoft.​AspNetCore.​Http.​IMiddlewareFactory

Assembly: Microsoft.AspNetCore.Http.Abstractions

Provides methods to create middleware.

Methods

Create​(System.​Type middlewareType)
Creates a middleware instance for each request.
Returns The <see cref="T:Microsoft.AspNetCore.Http.IMiddleware" /> instance.
middlewareType The concrete <see cref="T:System.Type" /> of the <see cref="T:Microsoft.AspNetCore.Http.IMiddleware" /> .
void
Release​(IMiddleware middleware)
Releases a <see cref="T:Microsoft.AspNetCore.Http.IMiddleware" /> instance at the end of each request.
middleware The <see cref="T:Microsoft.AspNetCore.Http.IMiddleware" /> instance to release.