Edytuj

Udostępnij za pośrednictwem


SiloBuilderStartupExtensions.AddStartupTask Method

Definition

Overloads

AddStartupTask(ISiloBuilder, IStartupTask, Int32)

Adds a startup task to be executed when the silo has started.

AddStartupTask(ISiloBuilder, Func<IServiceProvider,CancellationToken,Task>, Int32)

Adds a startup task to be executed when the silo has started.

AddStartupTask(ISiloHostBuilder, IStartupTask, Int32)

Adds a startup task to be executed when the silo has started.

AddStartupTask(ISiloHostBuilder, Func<IServiceProvider,CancellationToken,Task>, Int32)

Adds a startup task to be executed when the silo has started.

AddStartupTask<TStartup>(ISiloBuilder, Int32)

Adds a startup task to be executed when the silo has started.

AddStartupTask<TStartup>(ISiloHostBuilder, Int32)

Adds a startup task to be executed when the silo has started.

AddStartupTask(ISiloBuilder, IStartupTask, Int32)

Source:
SiloBuilderStartupExtensions.cs

Adds a startup task to be executed when the silo has started.

public static Orleans.Hosting.ISiloBuilder AddStartupTask (this Orleans.Hosting.ISiloBuilder builder, Orleans.Runtime.IStartupTask startupTask, int stage = 20000);
static member AddStartupTask : Orleans.Hosting.ISiloBuilder * Orleans.Runtime.IStartupTask * int -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function AddStartupTask (builder As ISiloBuilder, startupTask As IStartupTask, Optional stage As Integer = 20000) As ISiloBuilder

Parameters

builder
ISiloBuilder

The builder.

startupTask
IStartupTask

The startup task.

stage
Int32

The stage to execute the startup task, see values in ServiceLifecycleStage.

Returns

The provided ISiloBuilder.

Applies to

AddStartupTask(ISiloBuilder, Func<IServiceProvider,CancellationToken,Task>, Int32)

Source:
SiloBuilderStartupExtensions.cs

Adds a startup task to be executed when the silo has started.

public static Orleans.Hosting.ISiloBuilder AddStartupTask (this Orleans.Hosting.ISiloBuilder builder, Func<IServiceProvider,System.Threading.CancellationToken,System.Threading.Tasks.Task> startupTask, int stage = 20000);
static member AddStartupTask : Orleans.Hosting.ISiloBuilder * Func<IServiceProvider, System.Threading.CancellationToken, System.Threading.Tasks.Task> * int -> Orleans.Hosting.ISiloBuilder
<Extension()>
Public Function AddStartupTask (builder As ISiloBuilder, startupTask As Func(Of IServiceProvider, CancellationToken, Task), Optional stage As Integer = 20000) As ISiloBuilder

Parameters

builder
ISiloBuilder

The builder.

startupTask
Func<IServiceProvider,CancellationToken,Task>

The startup task.

stage
Int32

The stage to execute the startup task, see values in ServiceLifecycleStage.

Returns

The provided ISiloBuilder.

Applies to

AddStartupTask(ISiloHostBuilder, IStartupTask, Int32)

Source:
SiloBuilderStartupExtensions.cs

Adds a startup task to be executed when the silo has started.

public static Orleans.Hosting.ISiloHostBuilder AddStartupTask (this Orleans.Hosting.ISiloHostBuilder builder, Orleans.Runtime.IStartupTask startupTask, int stage = 20000);
static member AddStartupTask : Orleans.Hosting.ISiloHostBuilder * Orleans.Runtime.IStartupTask * int -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function AddStartupTask (builder As ISiloHostBuilder, startupTask As IStartupTask, Optional stage As Integer = 20000) As ISiloHostBuilder

Parameters

builder
ISiloHostBuilder

The builder.

startupTask
IStartupTask

The startup task.

stage
Int32

The stage to execute the startup task, see values in ServiceLifecycleStage.

Returns

The provided ISiloHostBuilder.

Applies to

AddStartupTask(ISiloHostBuilder, Func<IServiceProvider,CancellationToken,Task>, Int32)

Source:
SiloBuilderStartupExtensions.cs

Adds a startup task to be executed when the silo has started.

public static Orleans.Hosting.ISiloHostBuilder AddStartupTask (this Orleans.Hosting.ISiloHostBuilder builder, Func<IServiceProvider,System.Threading.CancellationToken,System.Threading.Tasks.Task> startupTask, int stage = 20000);
static member AddStartupTask : Orleans.Hosting.ISiloHostBuilder * Func<IServiceProvider, System.Threading.CancellationToken, System.Threading.Tasks.Task> * int -> Orleans.Hosting.ISiloHostBuilder
<Extension()>
Public Function AddStartupTask (builder As ISiloHostBuilder, startupTask As Func(Of IServiceProvider, CancellationToken, Task), Optional stage As Integer = 20000) As ISiloHostBuilder

Parameters

builder
ISiloHostBuilder

The builder.

startupTask
Func<IServiceProvider,CancellationToken,Task>

The startup task.

stage
Int32

The stage to execute the startup task, see values in ServiceLifecycleStage.

Returns

The provided ISiloHostBuilder.

Applies to

AddStartupTask<TStartup>(ISiloBuilder, Int32)

Source:
SiloBuilderStartupExtensions.cs

Adds a startup task to be executed when the silo has started.

public static Orleans.Hosting.ISiloBuilder AddStartupTask<TStartup> (this Orleans.Hosting.ISiloBuilder builder, int stage = 20000) where TStartup : class, Orleans.Runtime.IStartupTask;
static member AddStartupTask : Orleans.Hosting.ISiloBuilder * int -> Orleans.Hosting.ISiloBuilder (requires 'Startup : null and 'Startup :> Orleans.Runtime.IStartupTask)
<Extension()>
Public Function AddStartupTask(Of TStartup As {Class, IStartupTask}) (builder As ISiloBuilder, Optional stage As Integer = 20000) As ISiloBuilder

Type Parameters

TStartup

The startup task type.

Parameters

builder
ISiloBuilder

The builder.

stage
Int32

The stage to execute the startup task, see values in ServiceLifecycleStage.

Returns

The provided ISiloBuilder.

Applies to

AddStartupTask<TStartup>(ISiloHostBuilder, Int32)

Source:
SiloBuilderStartupExtensions.cs

Adds a startup task to be executed when the silo has started.

public static Orleans.Hosting.ISiloHostBuilder AddStartupTask<TStartup> (this Orleans.Hosting.ISiloHostBuilder builder, int stage = 20000) where TStartup : class, Orleans.Runtime.IStartupTask;
static member AddStartupTask : Orleans.Hosting.ISiloHostBuilder * int -> Orleans.Hosting.ISiloHostBuilder (requires 'Startup : null and 'Startup :> Orleans.Runtime.IStartupTask)
<Extension()>
Public Function AddStartupTask(Of TStartup As {Class, IStartupTask}) (builder As ISiloHostBuilder, Optional stage As Integer = 20000) As ISiloHostBuilder

Type Parameters

TStartup

The startup task type.

Parameters

builder
ISiloHostBuilder

The builder.

stage
Int32

The stage to execute the startup task, see values in ServiceLifecycleStage.

Returns

The provided ISiloHostBuilder.

Applies to