C# Class Ensage.Common.DelayActionItem

Class that contains all of the needed information for delaying an action.
Show file Open project: EnsageSharp/Ensage.Common Class Usage Examples

Public Methods

Method Description
DelayActionItem ( int time, System.Action func, CancellationToken token ) : System

Initializes a new instance of the DelayActionItem class.

Method Details

DelayActionItem() public method

Initializes a new instance of the DelayActionItem class.
public DelayActionItem ( int time, System.Action func, CancellationToken token ) : System
time int The time(in milliseconds) to call the function..
func System.Action The function to call once the has expired.
token System.Threading.CancellationToken The cancelation token.
return System