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

Asynchronous task that start on next idle slot
Inheritance: IDisposable
Afficher le fichier Open project: Microsoft/RTVS Class Usage Examples

Private Properties

Свойство Type Description
AssertIsMainThread void
ConnectToIdle void
DisconnectFromIdle void
Dispose void
DoTaskInternal void
OnIdle void
OnTerminate void
UIThreadCanceledCallback void
UIThreadCompletedCallback void

Méthodes publiques

Méthode Description
DoTaskOnIdle ( ) : void

Run task on next idle slot

DoTaskOnIdle ( Func taskAction, Action callbackAction, Action cancelAction, object tag = null ) : void

Runs specified task on next idle. Task must not be currently running.

DoTaskOnIdle ( int msDelay ) : void

Run task on next idle slot after certain amount of milliseconds

IdleTimeAsyncTask ( Func taskAction, Action callbackAction, Action cancelAction, IEditorShell shell ) : System

Asynchronous idle time task constructor

IdleTimeAsyncTask ( Func taskAction, Action callbackAction, IEditorShell shell ) : System

Asynchronous idle time task constructor

IdleTimeAsyncTask ( Func taskAction, IEditorShell shell ) : System

Asynchronous idle time task constructor

IdleTimeAsyncTask ( IEditorShell shell ) : System

Private Methods

Méthode Description
AssertIsMainThread ( ) : void
ConnectToIdle ( ) : void
DisconnectFromIdle ( ) : void
Dispose ( ) : void
DoTaskInternal ( ) : void
OnIdle ( object sender, EventArgs e ) : void
OnTerminate ( object sender, EventArgs e ) : void
UIThreadCanceledCallback ( object result ) : void
UIThreadCompletedCallback ( object result ) : void

Method Details

DoTaskOnIdle() public méthode

Run task on next idle slot
public DoTaskOnIdle ( ) : void
Résultat void

DoTaskOnIdle() public méthode

Runs specified task on next idle. Task must not be currently running.
public DoTaskOnIdle ( Func taskAction, Action callbackAction, Action cancelAction, object tag = null ) : void
taskAction Func Task to perform in a background thread
callbackAction Action Callback to invoke when task completes
cancelAction Action Callback to invoke if task is canceled
tag object
Résultat void

DoTaskOnIdle() public méthode

Run task on next idle slot after certain amount of milliseconds
public DoTaskOnIdle ( int msDelay ) : void
msDelay int
Résultat void

IdleTimeAsyncTask() public méthode

Asynchronous idle time task constructor
public IdleTimeAsyncTask ( Func taskAction, Action callbackAction, Action cancelAction, IEditorShell shell ) : System
taskAction Func Task to perform in a background thread
callbackAction Action Callback to invoke when task completes
cancelAction Action Callback to invoke if task is canceled
shell IEditorShell
Résultat System

IdleTimeAsyncTask() public méthode

Asynchronous idle time task constructor
public IdleTimeAsyncTask ( Func taskAction, Action callbackAction, IEditorShell shell ) : System
taskAction Func Task to perform in a background thread
callbackAction Action Callback to invoke when task completes
shell IEditorShell
Résultat System

IdleTimeAsyncTask() public méthode

Asynchronous idle time task constructor
public IdleTimeAsyncTask ( Func taskAction, IEditorShell shell ) : System
taskAction Func Task to perform in a background thread
shell IEditorShell
Résultat System

IdleTimeAsyncTask() public méthode

public IdleTimeAsyncTask ( IEditorShell shell ) : System
shell IEditorShell
Résultat System