ISiloHostBuilder.UseServiceProviderFactory<TContainerBuilder> 方法

定义

重写用于创建服务提供程序的工厂。

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

类型参数

TContainerBuilder

参数

factory
IServiceProviderFactory<TContainerBuilder>

返回

用于链接的主机生成器的同一实例。

适用于