App Metrics Fork me on GitHub
Show / Hide Table of Contents

Class DefaultTaskScheduler

Inheritance
System.Object
DefaultTaskScheduler
Namespace:App.Metrics.Scheduling
Assembly:cs.temp.dll.dll
Syntax
public sealed class DefaultTaskScheduler : IScheduler

Constructors

DefaultTaskScheduler(Boolean)

Initializes a new instance of the DefaultTaskScheduler class.

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
public void Dispose()

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
Type Description
Task

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
Type Description
Task

Stop()

Declaration
public void Stop()
Back to top Copyright © 2017 Allan Hardy
Generated by DocFX