C# Class Microsoft.HockeyApp.Extensibility.Implementation.TaskTimer

Runs a task after a certain delay and log any error.
Inheritance: IDisposable
Show file Open project: bitstadium/HockeySDK-Windows Class Usage Examples

Public Properties

Property Type Description
InfiniteTimeSpan System.TimeSpan

Public Methods

Method Description
Cancel ( ) : void

Cancels the current task.

Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

Start ( Func elapsed ) : void

Start the task.

Private Methods

Method Description
CancelAndDispose ( CancellationTokenSource tokenSource ) : void
Dispose ( bool disposing ) : void

Method Details

Cancel() public method

Cancels the current task.
public Cancel ( ) : void
return void

Dispose() public method

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
return void

Start() public method

Start the task.
public Start ( Func elapsed ) : void
elapsed Func The task to run.
return void

Property Details

InfiniteTimeSpan public static property

Represents an infinite time span.
public static TimeSpan,System InfiniteTimeSpan
return System.TimeSpan