Compartir a través de


SiloHostBuilderExtensions.ConfigureServices Método

Definición

Agrega servicios al contenedor. Esto se puede llamar varias veces y los resultados serán acumulables.

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

Parámetros

hostBuilder
ISiloHostBuilder

El objeto ISiloHostBuilder que se va a configurar.

configureDelegate
Action<IServiceCollection>

Devoluciones

La misma instancia de ISiloHostBuilder para el encadenamiento.

Se aplica a