SiloHostBuilderExtensions.UseServiceProviderFactory 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseServiceProviderFactory(ISiloHostBuilder, Func<IServiceCollection,IServiceProvider>)
指定如何 IServiceProvider 設定這個定址接收器的 。
public static Orleans.Hosting.ISiloHostBuilder UseServiceProviderFactory (this Orleans.Hosting.ISiloHostBuilder builder, Func<Microsoft.Extensions.DependencyInjection.IServiceCollection,IServiceProvider> configureServiceProvider);
static member UseServiceProviderFactory : Orleans.Hosting.ISiloHostBuilder * Func<Microsoft.Extensions.DependencyInjection.IServiceCollection, IServiceProvider> -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function UseServiceProviderFactory (builder As ISiloHostBuilder, configureServiceProvider As Func(Of IServiceCollection, IServiceProvider)) As ISiloHostBuilder
參數
- builder
- ISiloHostBuilder
主機產生器。
- configureServiceProvider
- Func<IServiceCollection,IServiceProvider>
服務提供者組態方法。
傳回
定址接收器產生器。
適用於
UseServiceProviderFactory<TContainerBuilder>(ISiloHostBuilder, IServiceProviderFactory<TContainerBuilder>)
指定如何 IServiceProvider 設定這個定址接收器的 。
public static Orleans.Hosting.ISiloHostBuilder UseServiceProviderFactory<TContainerBuilder> (Orleans.Hosting.ISiloHostBuilder builder, Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<TContainerBuilder> factory);
static member UseServiceProviderFactory : Orleans.Hosting.ISiloHostBuilder * Microsoft.Extensions.DependencyInjection.IServiceProviderFactory<'ContainerBuilder> -> Orleans.Hosting.ISiloHostBuilder
Public Function UseServiceProviderFactory(Of TContainerBuilder) (builder As ISiloHostBuilder, factory As IServiceProviderFactory(Of TContainerBuilder)) As ISiloHostBuilder
類型參數
- TContainerBuilder
參數
- builder
- ISiloHostBuilder
主機產生器。
- factory
- IServiceProviderFactory<TContainerBuilder>
服務提供者組態方法。
傳回
定址接收器產生器。