Udostępnij za pośrednictwem


WebHostBuilderExtensions.UseDefaultServiceProvider Metoda

Definicja

Przeciążenia

UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)

Konfiguruje domyślnego dostawcę usług

UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)

Konfiguruje domyślnego dostawcę usług

UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)

Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs

Konfiguruje domyślnego dostawcę usług

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseDefaultServiceProvider(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::AspNetCore::Hosting::WebHostBuilderContext ^, Microsoft::Extensions::DependencyInjection::ServiceProviderOptions ^> ^ configure);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseDefaultServiceProvider (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext,Microsoft.Extensions.DependencyInjection.ServiceProviderOptions> configure);
static member UseDefaultServiceProvider : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.AspNetCore.Hosting.WebHostBuilderContext, Microsoft.Extensions.DependencyInjection.ServiceProviderOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseDefaultServiceProvider (hostBuilder As IWebHostBuilder, configure As Action(Of WebHostBuilderContext, ServiceProviderOptions)) As IWebHostBuilder

Parametry

hostBuilder
IWebHostBuilder

Element do skonfigurowania IWebHostBuilder .

configure
Action<WebHostBuilderContext,ServiceProviderOptions>

Wywołanie zwrotne używane do konfigurowania ServiceProviderOptions domyślnego elementu IServiceProvider.

Zwraca

Element IWebHostBuilder.

Dotyczy

UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)

Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs
Źródło:
WebHostBuilderExtensions.cs

Konfiguruje domyślnego dostawcę usług

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ UseDefaultServiceProvider(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::DependencyInjection::ServiceProviderOptions ^> ^ configure);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder UseDefaultServiceProvider (this Microsoft.AspNetCore.Hosting.IWebHostBuilder hostBuilder, Action<Microsoft.Extensions.DependencyInjection.ServiceProviderOptions> configure);
static member UseDefaultServiceProvider : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.Extensions.DependencyInjection.ServiceProviderOptions> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function UseDefaultServiceProvider (hostBuilder As IWebHostBuilder, configure As Action(Of ServiceProviderOptions)) As IWebHostBuilder

Parametry

hostBuilder
IWebHostBuilder

Element do skonfigurowania IWebHostBuilder .

configure
Action<ServiceProviderOptions>

Wywołanie zwrotne używane do konfigurowania ServiceProviderOptions domyślnego elementu IServiceProvider.

Zwraca

Element IWebHostBuilder.

Dotyczy