Поделиться через


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 для настройки приложения.

Применяется к