C# Class NServiceBus.ScheduleExtensions

Extends the context with scheduling capabilities.
Show file Open project: Particular/NServiceBus

Public Methods

Method Description
ScheduleEvery ( this session, System.TimeSpan timeSpan, Task>.Func task ) : Task

Schedules a task to be executed repeatedly in a given interval.

ScheduleEvery ( this session, System.TimeSpan timeSpan, string name, Task>.Func task ) : Task

Schedules a task to be executed repeatedly in a given interval.

Private Methods

Method Description
Schedule ( IMessageSession session, TaskDefinition taskDefinition ) : Task
ScheduleEvery ( this session, System.TimeSpan timeSpan, System.Action task ) : void
ScheduleEvery ( this session, System.TimeSpan timeSpan, string name, System.Action task ) : void

Method Details

ScheduleEvery() public static method

Schedules a task to be executed repeatedly in a given interval.
public static ScheduleEvery ( this session, System.TimeSpan timeSpan, Task>.Func task ) : Task
session this The session which allows you to perform message operation.
timeSpan System.TimeSpan The interval to repeatedly execute the .
task Task>.Func The async function to execute.
return Task

ScheduleEvery() public static method

Schedules a task to be executed repeatedly in a given interval.
public static ScheduleEvery ( this session, System.TimeSpan timeSpan, string name, Task>.Func task ) : Task
session this The session which allows you to perform message operation.
timeSpan System.TimeSpan The interval to repeatedly execute the .
name string The name to used for logging the task being executed.
task Task>.Func The async function to execute.
return Task