共用方式為


SiloHostBuilderExtensions.UseServiceProviderFactory 方法

定義

多載

UseServiceProviderFactory(ISiloHostBuilder, Func<IServiceCollection,IServiceProvider>)

指定如何 IServiceProvider 設定這個定址接收器的 。

UseServiceProviderFactory<TContainerBuilder>(ISiloHostBuilder, IServiceProviderFactory<TContainerBuilder>)

指定如何 IServiceProvider 設定這個定址接收器的 。

UseServiceProviderFactory(ISiloHostBuilder, Func<IServiceCollection,IServiceProvider>)

來源:
SiloHostBuilderExtensions.cs

指定如何 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>)

來源:
SiloHostBuilderExtensions.cs

指定如何 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>

服務提供者組態方法。

傳回

定址接收器產生器。

適用於