Share via


MiddlewareFactory Class

Definition

Default implementation for IMiddlewareFactory.

public ref class MiddlewareFactory : Microsoft::AspNetCore::Http::IMiddlewareFactory
public class MiddlewareFactory : Microsoft.AspNetCore.Http.IMiddlewareFactory
type MiddlewareFactory = class
    interface IMiddlewareFactory
Public Class MiddlewareFactory
Implements IMiddlewareFactory
Inheritance
MiddlewareFactory
Implements

Constructors

MiddlewareFactory(IServiceProvider)

Initializes a new instance of MiddlewareFactory.

Methods

Create(Type)

Creates a middleware instance for each request.

Release(IMiddleware)

Releases a IMiddleware instance at the end of each request.

Applies to