SiloHostBuilder.ConfigureServices 方法

定义

向容器添加服务。 可多次进行调用,并累加结果。

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

参数

configureDelegate
Action<HostBuilderContext,IServiceCollection>

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

返回

用于链接的主机生成器的同一实例。

实现

适用于