共用方式為


MiddlewareFactory(IServiceProvider) 建構函式

定義

初始化 MiddlewareFactory 的新執行個體。

public:
 MiddlewareFactory(IServiceProvider ^ serviceProvider);
public MiddlewareFactory (IServiceProvider serviceProvider);
new Microsoft.AspNetCore.Http.MiddlewareFactory : IServiceProvider -> Microsoft.AspNetCore.Http.MiddlewareFactory
Public Sub New (serviceProvider As IServiceProvider)

參數

serviceProvider
IServiceProvider

應用程式服務。

適用於