編輯

共用方式為


ClientBuilderExtensions.ConfigureServices Method

Definition

Adds services to the container. This can be called multiple times and the results will be additive.

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

Parameters

hostBuilder
IClientBuilder

The IClientBuilder to configure.

configureDelegate
Action<IServiceCollection>

Returns

The same instance of the IClientBuilder for chaining.

Applies to