Edytuj

Udostępnij za pośrednictwem


GenericHostExtensions.UseOrleans Method

Definition

Overloads

UseOrleans(IHostBuilder, Action<HostBuilderContext,ISiloBuilder>)

Configures the host builder to host an Orleans silo.

UseOrleans(IHostBuilder, Action<ISiloBuilder>)

Configures the host builder to host an Orleans silo.

UseOrleans(IHostBuilder, Action<HostBuilderContext,ISiloBuilder>)

Source:
GenericHostExtensions.cs

Configures the host builder to host an Orleans silo.

public static Microsoft.Extensions.Hosting.IHostBuilder UseOrleans (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.Hosting.HostBuilderContext,Orleans.Hosting.ISiloBuilder> configureDelegate);
static member UseOrleans : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.Hosting.HostBuilderContext, Orleans.Hosting.ISiloBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function UseOrleans (hostBuilder As IHostBuilder, configureDelegate As Action(Of HostBuilderContext, ISiloBuilder)) As IHostBuilder

Parameters

hostBuilder
IHostBuilder

The host builder.

configureDelegate
Action<HostBuilderContext,ISiloBuilder>

The delegate used to configure the silo.

Returns

The host builder.

Remarks

Calling this method multiple times on the same IHostBuilder instance will result in one silo being configured. However, the effects of configureDelegate will be applied once for each call.

Applies to

UseOrleans(IHostBuilder, Action<ISiloBuilder>)

Source:
GenericHostExtensions.cs

Configures the host builder to host an Orleans silo.

public static Microsoft.Extensions.Hosting.IHostBuilder UseOrleans (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Orleans.Hosting.ISiloBuilder> configureDelegate);
static member UseOrleans : Microsoft.Extensions.Hosting.IHostBuilder * Action<Orleans.Hosting.ISiloBuilder> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function UseOrleans (hostBuilder As IHostBuilder, configureDelegate As Action(Of ISiloBuilder)) As IHostBuilder

Parameters

hostBuilder
IHostBuilder

The host builder.

configureDelegate
Action<ISiloBuilder>

The delegate used to configure the silo.

Returns

The host builder.

Remarks

Calling this method multiple times on the same IHostBuilder instance will result in one silo being configured. However, the effects of configureDelegate will be applied once for each call.

Applies to