Freigeben über


WebHostBuilderExtensions.UseDefaultServiceProvider Methode

Definition

Überlädt

UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)

Konfiguriert den Standarddienstanbieter.

UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)

Konfiguriert den Standarddienstanbieter.

UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)

Quelle:
WebHostBuilderExtensions.cs
Quelle:
WebHostBuilderExtensions.cs
Quelle:
WebHostBuilderExtensions.cs

Konfiguriert den Standarddienstanbieter.

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

Parameter

hostBuilder
IWebHostBuilder

Die zu konfigurierende IWebHostBuilder-Schnittstelle.

configure
Action<WebHostBuilderContext,ServiceProviderOptions>

Ein Rückruf, der verwendet wird, um den ServiceProviderOptions für den Standard IServiceProviderzu konfigurieren.

Gibt zurück

Die IWebHostBuilder.

Gilt für:

UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)

Quelle:
WebHostBuilderExtensions.cs
Quelle:
WebHostBuilderExtensions.cs
Quelle:
WebHostBuilderExtensions.cs

Konfiguriert den Standarddienstanbieter.

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

Parameter

hostBuilder
IWebHostBuilder

Die zu konfigurierende IWebHostBuilder-Schnittstelle.

configure
Action<ServiceProviderOptions>

Ein Rückruf, der verwendet wird, um den ServiceProviderOptions für den Standard IServiceProviderzu konfigurieren.

Gibt zurück

Die IWebHostBuilder.

Gilt für: