Sdílet prostřednictvím


WebHostBuilderExtensions.UseDefaultServiceProvider Metoda

Definice

Přetížení

UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)

Nakonfiguruje výchozího poskytovatele služeb.

UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)

Nakonfiguruje výchozího poskytovatele služeb.

UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)

Zdroj:
WebHostBuilderExtensions.cs
Zdroj:
WebHostBuilderExtensions.cs
Zdroj:
WebHostBuilderExtensions.cs

Nakonfiguruje výchozího poskytovatele služeb.

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

Konfigurace IWebHostBuilder .

configure
Action<WebHostBuilderContext,ServiceProviderOptions>

Zpětné volání použité ke konfiguraci ServiceProviderOptions pro výchozí IServiceProvider.

Návraty

Hodnota IWebHostBuilder

Platí pro

UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)

Zdroj:
WebHostBuilderExtensions.cs
Zdroj:
WebHostBuilderExtensions.cs
Zdroj:
WebHostBuilderExtensions.cs

Nakonfiguruje výchozího poskytovatele služeb.

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

Konfigurace IWebHostBuilder .

configure
Action<ServiceProviderOptions>

Zpětné volání použité ke konfiguraci ServiceProviderOptions pro výchozí IServiceProvider.

Návraty

Hodnota IWebHostBuilder

Platí pro