Class DefaultTaskScheduler
Inheritance
System.Object
DefaultTaskScheduler
Namespace:App.Metrics.Scheduling
Assembly:cs.temp.dll.dll
Syntax
public sealed class DefaultTaskScheduler : IScheduler
Constructors
DefaultTaskScheduler(Boolean)
Declaration
public DefaultTaskScheduler(bool allowMulitpleTasks = true)
Parameters
Type |
Name |
Description |
System.Boolean |
allowMulitpleTasks |
if set to true allows more than one task to be created at a time, otherwise
ensures the task hasn't yet started.
|
Methods
Dispose()
Declaration
Dispose(Boolean)
Declaration
public void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
Interval(TimeSpan, TaskCreationOptions, Action)
Declaration
public Task Interval(TimeSpan pollInterval, TaskCreationOptions taskCreationOptions, Action action)
Parameters
Type |
Name |
Description |
System.TimeSpan |
pollInterval |
|
TaskCreationOptions |
taskCreationOptions |
|
System.Action |
action |
|
Returns
Interval(TimeSpan, TaskCreationOptions, Action, CancellationToken)
Declaration
public Task Interval(TimeSpan pollInterval, TaskCreationOptions taskCreationOptions, Action action, CancellationToken token)
Parameters
Type |
Name |
Description |
System.TimeSpan |
pollInterval |
|
TaskCreationOptions |
taskCreationOptions |
|
System.Action |
action |
|
CancellationToken |
token |
|
Returns
Stop()
Declaration