SiloBuilderStartupExtensions.AddStartupTask 方法

定义

重载

AddStartupTask(ISiloBuilder, IStartupTask, Int32)

添加启动任务,以在接收器启动时执行。

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

添加启动任务,以在接收器启动时执行。

AddStartupTask(ISiloHostBuilder, IStartupTask, Int32)

添加启动任务,以在接收器启动时执行。

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

添加启动任务,以在接收器启动时执行。

AddStartupTask<TStartup>(ISiloBuilder, Int32)

添加启动任务,以在接收器启动时执行。

AddStartupTask<TStartup>(ISiloHostBuilder, Int32)

添加启动任务,以在接收器启动时执行。

AddStartupTask(ISiloBuilder, IStartupTask, Int32)

Source:
SiloBuilderStartupExtensions.cs

添加启动任务,以在接收器启动时执行。

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

参数

builder
ISiloBuilder

生成器。

startupTask
IStartupTask

启动任务。

stage
Int32

执行启动任务的阶段,请参阅中的 ServiceLifecycleStage值。

返回

提供的 ISiloBuilder

适用于

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

Source:
SiloBuilderStartupExtensions.cs

添加启动任务,以在接收器启动时执行。

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

参数

builder
ISiloBuilder

生成器。

startupTask
Func<IServiceProvider,CancellationToken,Task>

启动任务。

stage
Int32

执行启动任务的阶段,请参阅中的 ServiceLifecycleStage值。

返回

提供的 ISiloBuilder

适用于

AddStartupTask(ISiloHostBuilder, IStartupTask, Int32)

Source:
SiloBuilderStartupExtensions.cs

添加启动任务,以在接收器启动时执行。

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

参数

builder
ISiloHostBuilder

生成器。

startupTask
IStartupTask

启动任务。

stage
Int32

执行启动任务的阶段,请参阅中的 ServiceLifecycleStage值。

返回

提供的 ISiloHostBuilder

适用于

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

Source:
SiloBuilderStartupExtensions.cs

添加启动任务,以在接收器启动时执行。

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

参数

builder
ISiloHostBuilder

生成器。

startupTask
Func<IServiceProvider,CancellationToken,Task>

启动任务。

stage
Int32

执行启动任务的阶段,请参阅中的 ServiceLifecycleStage值。

返回

提供的 ISiloHostBuilder

适用于

AddStartupTask<TStartup>(ISiloBuilder, Int32)

Source:
SiloBuilderStartupExtensions.cs

添加启动任务,以在接收器启动时执行。

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

类型参数

TStartup

启动任务类型。

参数

builder
ISiloBuilder

生成器。

stage
Int32

执行启动任务的阶段,请参阅中的 ServiceLifecycleStage值。

返回

提供的 ISiloBuilder

适用于

AddStartupTask<TStartup>(ISiloHostBuilder, Int32)

Source:
SiloBuilderStartupExtensions.cs

添加启动任务,以在接收器启动时执行。

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

类型参数

TStartup

启动任务类型。

参数

builder
ISiloHostBuilder

生成器。

stage
Int32

执行启动任务的阶段,请参阅中的 ServiceLifecycleStage值。

返回

提供的 ISiloHostBuilder

适用于