Edit

Share via


SiloHostBuilderExtensions.ConfigureServices Method

Definition

Adds services to the container. This can be called multiple times and the results will be additive.

public static Orleans.Hosting.ISiloHostBuilder ConfigureServices (this Orleans.Hosting.ISiloHostBuilder hostBuilder, Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> configureDelegate);
static member ConfigureServices : Orleans.Hosting.ISiloHostBuilder * Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function ConfigureServices (hostBuilder As ISiloHostBuilder, configureDelegate As Action(Of IServiceCollection)) As ISiloHostBuilder

Parameters

hostBuilder
ISiloHostBuilder

The ISiloHostBuilder to configure.

configureDelegate
Action<IServiceCollection>

Returns

The same instance of the ISiloHostBuilder for chaining.

Applies to