MiddlewareFactory 类

定义

的默认实现 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
继承
MiddlewareFactory
实现

构造函数

MiddlewareFactory(IServiceProvider)

初始化 MiddlewareFactory 的新实例。

方法

Create(Type)

为每个请求创建中间件实例。

Release(IMiddleware)

在每个请求结束时释放实例 IMiddleware

适用于