共用方式為


SiloHostBuilderExtensions.ConfigureServices 方法

定義

將服務新增至容器。 這可以呼叫多次,結果會進行累加。

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

參數

hostBuilder
ISiloHostBuilder

要設定的 ISiloHostBuilder

configureDelegate
Action<IServiceCollection>

傳回

用於鏈結的相同 ISiloHostBuilder 執行個體。

適用於