DelegateStartup 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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))
参数
用于创建 IServiceProvider 实例的工厂。
- configureApp
- Action<IApplicationBuilder>
Action用于配置应用程序的 。