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 实例。

适用于