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

Asynchronous task that start on next idle slot
Inheritance: IDisposable
显示文件 Open project: Microsoft/RTVS Class Usage Examples

Private Properties

Property Type Description
AssertIsMainThread void
ConnectToIdle void
DisconnectFromIdle void
Dispose void
DoTaskInternal void
OnIdle void
OnTerminate void
UIThreadCanceledCallback void
UIThreadCompletedCallback void

Public Methods

Method 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

Method 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 method

Run task on next idle slot
public DoTaskOnIdle ( ) : void
return void

DoTaskOnIdle() public method

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
return void

DoTaskOnIdle() public method

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

IdleTimeAsyncTask() public method

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
return System

IdleTimeAsyncTask() public method

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
return System

IdleTimeAsyncTask() public method

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

IdleTimeAsyncTask() public method

public IdleTimeAsyncTask ( IEditorShell shell ) : System
shell IEditorShell
return System