Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

GenericHostExtensions.UseOrleans Method

Definition

Namespace:
Microsoft.Extensions.Hosting
Assembly:
Orleans.Runtime.dll
Package:
Microsoft.Orleans.OrleansRuntime v2.4.5
Package:
Microsoft.Orleans.OrleansRuntime v3.6.5

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

Name Description
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