共用方式為


SiloBuilderExtensions.ConfigureServices 方法

定義

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

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

參數

builder
ISiloBuilder

要設定的 ISiloBuilder

configureDelegate
Action<IServiceCollection>

傳回

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

適用於