共用方式為


DelegateStartup 建構函式

定義

多載

DelegateStartup(Action<IApplicationBuilder>)
DelegateStartup(IServiceProviderFactory<IServiceCollection>, Action<IApplicationBuilder>)

建立新的 DelegateStartup 執行個體。

DelegateStartup(Action<IApplicationBuilder>)

public:
 DelegateStartup(Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ configureApp);
public DelegateStartup (Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configureApp);
new Microsoft.AspNetCore.Hosting.DelegateStartup : Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.DelegateStartup
Public Sub New (configureApp As Action(Of IApplicationBuilder))

參數

configureApp
Action<IApplicationBuilder>

適用於

DelegateStartup(IServiceProviderFactory<IServiceCollection>, Action<IApplicationBuilder>)

來源:
DelegateStartup.cs
來源:
DelegateStartup.cs
來源:
DelegateStartup.cs

建立新的 DelegateStartup 執行個體。

public:
 DelegateStartup(Microsoft::Extensions::DependencyInjection::IServiceProviderFactory<Microsoft::Extensions::DependencyInjection::IServiceCollection ^> ^ factory, Action<Microsoft::AspNetCore::Builder::IApplicationBuilder ^> ^ configureApp);
public DelegateStartup (Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<Microsoft.Extensions.DependencyInjection.IServiceCollection> factory, Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> configureApp);
new Microsoft.AspNetCore.Hosting.DelegateStartup : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<Microsoft.Extensions.DependencyInjection.IServiceCollection> * Action<Microsoft.AspNetCore.Builder.IApplicationBuilder> -> Microsoft.AspNetCore.Hosting.DelegateStartup
Public Sub New (factory As IServiceProviderFactory(Of IServiceCollection), configureApp As Action(Of IApplicationBuilder))

參數

factory
IServiceProviderFactory<IServiceCollection>

用於建立 IServiceProvider 實例的處理站。

configureApp
Action<IApplicationBuilder>

Action用於設定應用程式的 。

適用於