共用方式為


SiloHostBuilder.UseServiceProviderFactory<TContainerBuilder> 方法

定義

覆寫用來建立服務提供者的 Factory。

public Orleans.Hosting.ISiloHostBuilder UseServiceProviderFactory<TContainerBuilder> (Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<TContainerBuilder> factory);
abstract member UseServiceProviderFactory : Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder> -> Orleans.Hosting.ISiloHostBuilder
override this.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>

傳回

用於鏈結之主機產生器的相同實例。

實作

適用於