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>)

Source:
DelegateStartup.cs
Source:
DelegateStartup.cs
Source:
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用于配置应用程序的 。

适用于