MiddlewareFactory.Create(Type) 方法

定义

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

public:
 virtual Microsoft::AspNetCore::Http::IMiddleware ^ Create(Type ^ middlewareType);
public Microsoft.AspNetCore.Http.IMiddleware Create (Type middlewareType);
public Microsoft.AspNetCore.Http.IMiddleware? Create (Type middlewareType);
abstract member Create : Type -> Microsoft.AspNetCore.Http.IMiddleware
override this.Create : Type -> Microsoft.AspNetCore.Http.IMiddleware
Public Function Create (middlewareType As Type) As IMiddleware

参数

middlewareType
Type

Type的具体 。IMiddleware

返回

IMiddleware 实例。

实现

适用于