다음을 통해 공유


HostBuilder.UseServiceProviderFactory 메서드

정의

오버로드

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

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

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

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

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs

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

public:
generic <typename TContainerBuilder>
 virtual 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
override this.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:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs
Source:
HostBuilder.cs

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

public:
generic <typename TContainerBuilder>
 virtual 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
override this.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의 동일한 인스턴스입니다.

구현

적용 대상