다음을 통해 공유


IHostBuilder.UseServiceProviderFactory 메서드

정의

오버로드

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

서비스 공급자를 만드는 데 사용된 팩터리를 재정의합니다.

UseServiceProviderFactory<TContainerBuilder>(Func<HostBuilderContext,IServiceProviderFactory<TContainerBuilder>>)

서비스 공급자를 만드는 데 사용된 팩터리를 재정의합니다.

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

Source:
IHostBuilder.cs
Source:
IHostBuilder.cs
Source:
IHostBuilder.cs

서비스 공급자를 만드는 데 사용된 팩터리를 재정의합니다.

public:
generic <typename TContainerBuilder>
 Microsoft::Extensions::Hosting::IHostBuilder ^ UseServiceProviderFactory(Microsoft::Extensions::DependencyInjection::IServiceProviderFactory<TContainerBuilder> ^ factory);
public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory<TContainerBuilder> (Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<TContainerBuilder> factory);
abstract member UseServiceProviderFactory : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
Public Function UseServiceProviderFactory(Of TContainerBuilder) (factory As IServiceProviderFactory(Of TContainerBuilder)) As IHostBuilder

형식 매개 변수

TContainerBuilder

작성기의 유형입니다.

매개 변수

factory
IServiceProviderFactory<TContainerBuilder>

등록할 팩터리입니다.

반환

연결을 위한 IHostBuilder의 동일한 인스턴스입니다.

적용 대상

UseServiceProviderFactory<TContainerBuilder>(Func<HostBuilderContext,IServiceProviderFactory<TContainerBuilder>>)

Source:
IHostBuilder.cs
Source:
IHostBuilder.cs
Source:
IHostBuilder.cs

서비스 공급자를 만드는 데 사용된 팩터리를 재정의합니다.

public:
generic <typename TContainerBuilder>
 Microsoft::Extensions::Hosting::IHostBuilder ^ UseServiceProviderFactory(Func<Microsoft::Extensions::Hosting::HostBuilderContext ^, Microsoft::Extensions::DependencyInjection::IServiceProviderFactory<TContainerBuilder> ^> ^ factory);
public Microsoft.Extensions.Hosting.IHostBuilder UseServiceProviderFactory<TContainerBuilder> (Func<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<TContainerBuilder>> factory);
abstract member UseServiceProviderFactory : Func<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder>> -> Microsoft.Extensions.Hosting.IHostBuilder
Public Function UseServiceProviderFactory(Of TContainerBuilder) (factory As Func(Of HostBuilderContext, IServiceProviderFactory(Of TContainerBuilder))) As IHostBuilder

형식 매개 변수

TContainerBuilder

작성기의 유형입니다.

매개 변수

factory
Func<HostBuilderContext,IServiceProviderFactory<TContainerBuilder>>

등록할 팩터리입니다.

반환

연결을 위한 IHostBuilder의 동일한 인스턴스입니다.

적용 대상