C# Class AccidentalFish.ApplicationSupport.Core.Policies.Implementation.AsynchronousIntervalTimer

Inheritance: IAsynchronousIntervalTimer
ファイルを表示 Open project: JamesRandall/AccidentalFish.ApplicationSupport Class Usage Examples

Public Methods

Method Description
AsynchronousIntervalTimer ( IAsynchronousDelay taskDelay, System.TimeSpan interval, bool delayOnExecute ) : System
ExecuteAsync ( Func function, System.Action shutdownAction = null ) : Task
ExecuteAsync ( Func function, CancellationToken cancellationToken, System.Action shutdownAction = null ) : Task

Method Details

AsynchronousIntervalTimer() public method

public AsynchronousIntervalTimer ( IAsynchronousDelay taskDelay, System.TimeSpan interval, bool delayOnExecute ) : System
taskDelay IAsynchronousDelay
interval System.TimeSpan
delayOnExecute bool
return System

ExecuteAsync() public method

public ExecuteAsync ( Func function, System.Action shutdownAction = null ) : Task
function Func
shutdownAction System.Action
return Task

ExecuteAsync() public method

public ExecuteAsync ( Func function, CancellationToken cancellationToken, System.Action shutdownAction = null ) : Task
function Func
cancellationToken System.Threading.CancellationToken
shutdownAction System.Action
return Task