WebHostBuilderExtensions.UseDefaultServiceProvider Yöntem

Tanım

Aşırı Yüklemeler

UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)

Varsayılan hizmet sağlayıcısını yapılandırıyor

UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)

Varsayılan hizmet sağlayıcısını yapılandırıyor

UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)

Kaynak:
WebHostBuilderExtensions.cs
Kaynak:
WebHostBuilderExtensions.cs
Kaynak:
WebHostBuilderExtensions.cs

Varsayılan hizmet sağlayıcısını yapılandırıyor

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

Parametreler

hostBuilder
IWebHostBuilder

IWebHostBuilder yapılandırılır.

configure
Action<WebHostBuilderContext,ServiceProviderOptions>

varsayılan IServiceProvideriçin öğesini yapılandırmak ServiceProviderOptions için kullanılan bir geri çağırma.

Döndürülenler

IWebHostBuilder.

Şunlara uygulanır

UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)

Kaynak:
WebHostBuilderExtensions.cs
Kaynak:
WebHostBuilderExtensions.cs
Kaynak:
WebHostBuilderExtensions.cs

Varsayılan hizmet sağlayıcısını yapılandırıyor

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

Parametreler

hostBuilder
IWebHostBuilder

IWebHostBuilder yapılandırılır.

configure
Action<ServiceProviderOptions>

varsayılan IServiceProvideriçin öğesini yapılandırmak ServiceProviderOptions için kullanılan bir geri çağırma.

Döndürülenler

IWebHostBuilder.

Şunlara uygulanır