C# Class Microsoft.Languages.Editor.Tasks.IdleTimeAction

Action that should be executed on next idle after certain amount of milliseconds
Datei anzeigen Open project: Microsoft/RTVS Class Usage Examples

Public Methods

Method Description
Cancel ( object tag ) : void

Cancels idle time action. Has no effect if action has already been executed.

Create ( System.Action action, int delay, object tag, ICoreShell shell ) : void

Create delayed idle time action

Private Methods

Method Description
ConnectToIdle ( ) : void
DisconnectFromIdle ( ) : void
IdleTimeAction ( System.Action action, int delay, object tag, ICoreShell shell ) : System
OnIdle ( object sender, EventArgs e ) : void

Method Details

Cancel() public static method

Cancels idle time action. Has no effect if action has already been executed.
public static Cancel ( object tag ) : void
tag object Tag identifying the action to cancel
return void

Create() public static method

Create delayed idle time action
public static Create ( System.Action action, int delay, object tag, ICoreShell shell ) : void
action System.Action Action to execute on idle
delay int Minimum number of milliseconds to wait before executing the action
tag object Object that uniquely identifies the action. Typically creator object.
shell ICoreShell
return void