SiloHostBuilder.UseServiceProviderFactory<TContainerBuilder> 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.
Overrides the factory used to create the service provider.
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
Type Parameters
- TContainerBuilder
Parameters
- factory
- IServiceProviderFactory<TContainerBuilder>
Returns
The same instance of the host builder for chaining.