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

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat void

Create() public static méthode

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
Résultat void