IClientBuilder.ConfigureServices 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ConfigureServices(Action<IServiceCollection>) |
將服務組態委派新增至組態管線。 |
ConfigureServices(Action<HostBuilderContext,IServiceCollection>) |
將服務新增至容器。 這可以呼叫多次,結果會進行累加。 |
ConfigureServices(Action<IServiceCollection>)
將服務組態委派新增至組態管線。
public Orleans.IClientBuilder ConfigureServices (Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> configureServices);
abstract member ConfigureServices : Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Orleans.IClientBuilder
Public Function ConfigureServices (configureServices As Action(Of IServiceCollection)) As IClientBuilder
參數
- configureServices
- Action<IServiceCollection>
服務組態委派。
傳回
產生器。
適用於
ConfigureServices(Action<HostBuilderContext,IServiceCollection>)
將服務新增至容器。 這可以呼叫多次,結果會進行累加。
public Orleans.IClientBuilder ConfigureServices (Action<Orleans.Hosting.HostBuilderContext,Microsoft.Extensions.DependencyInjection.IServiceCollection> configureDelegate);
abstract member ConfigureServices : Action<Orleans.Hosting.HostBuilderContext, Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Orleans.IClientBuilder
Public Function ConfigureServices (configureDelegate As Action(Of HostBuilderContext, IServiceCollection)) As IClientBuilder
參數
- configureDelegate
- Action<HostBuilderContext,IServiceCollection>
此委派可設定將用來建構 IServiceProvider 的 IServiceCollection。
傳回
用於鏈結之主機產生器的相同實例。