ISiloBuilder.ConfigureServices 方法

定义

在容器中配置服务。 可多次进行调用,并累加结果。

public Orleans.Hosting.ISiloBuilder ConfigureServices (Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.DependencyInjection.IServiceCollection> configureDelegate);
abstract member ConfigureServices : Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Orleans.Hosting.ISiloBuilder
Public Function ConfigureServices (configureDelegate As Action(Of HostBuilderContext, IServiceCollection)) As ISiloBuilder

参数

configureDelegate
Action<HostBuilderContext,IServiceCollection>

配置将用于构造 IServiceProviderIServiceCollection 的委托。

返回

用于链接的孤岛生成器的同一实例。

适用于