C# Класс Microsoft.Languages.Editor.Tasks.IdleTimeAction

Action that should be executed on next idle after certain amount of milliseconds
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
ConnectToIdle ( ) : void
DisconnectFromIdle ( ) : void
IdleTimeAction ( System.Action action, int delay, object tag, ICoreShell shell ) : System
OnIdle ( object sender, EventArgs e ) : void

Описание методов

Cancel() публичный статический Метод

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
Результат void

Create() публичный статический Метод

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
Результат void