共用方式為


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在每個要求結束時釋放 實例。

適用於