SiloHostBuilderExtensions.ConfigureServices Metodo

Definizione

Aggiunge servizi al contenitore. Può essere chiamato più volte e i risultati vengono aggiunti ai precedenti.

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

Parametri

hostBuilder
ISiloHostBuilder

Oggetto ISiloHostBuilder da configurare.

configureDelegate
Action<IServiceCollection>

Restituisce

Stessa istanza di ISiloHostBuilder per il concatenamento.

Si applica a