SiloHostBuilderExtensions.UseServiceProviderFactory Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
UseServiceProviderFactory(ISiloHostBuilder, Func<IServiceCollection,IServiceProvider>) |
Specifies how the IServiceProvider for this silo is configured. |
UseServiceProviderFactory<TContainerBuilder>(ISiloHostBuilder, IServiceProviderFactory<TContainerBuilder>) |
Specifies how the IServiceProvider for this silo is configured. |
UseServiceProviderFactory(ISiloHostBuilder, Func<IServiceCollection,IServiceProvider>)
- Source:
- SiloHostBuilderExtensions.cs
Specifies how the IServiceProvider for this silo is configured.
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
Parameters
- builder
- ISiloHostBuilder
The host builder.
- configureServiceProvider
- Func<IServiceCollection,IServiceProvider>
The service provider configuration method.
Returns
The silo builder.
Applies to
UseServiceProviderFactory<TContainerBuilder>(ISiloHostBuilder, IServiceProviderFactory<TContainerBuilder>)
- Source:
- SiloHostBuilderExtensions.cs
Specifies how the IServiceProvider for this silo is configured.
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
Type Parameters
- TContainerBuilder
Parameters
- builder
- ISiloHostBuilder
The host builder.
- factory
- IServiceProviderFactory<TContainerBuilder>
The service provider configuration method.
Returns
The silo builder.