C# Class Microsoft.Silverlight.Testing.WorkItemExtensions

A class contains extension methods and helpers for dealing with WorkItem instances and improving framework performance.
Datei anzeigen Open project: garyjohnson/wpnest

Public Methods

Method Description
EnqueueQuickCallback ( this test, System.Action callback ) : void

Enqueues a method into the task queue. The method will run immediately following the previous work item, and may not leave any time before executing the next. This is a specialized method to be used for performance improvements.

EnqueueQuickConditional ( this test, Func conditional ) : void

Enqueues a conditional statement into the task queue. The method will run immediately following the previous work item, and may not leave any time before executing the next. This is a specialized method to be used for performance improvements.

EnqueueQuickWorkItem ( this test, WorkItem workItem ) : void

Enqueues a work item into the task queue. The work item will run immediately following the previous work item, and may not leave any time before executing the next. This is a specialized method to be used for performance improvements.

Method Details

EnqueueQuickCallback() public static method

Enqueues a method into the task queue. The method will run immediately following the previous work item, and may not leave any time before executing the next. This is a specialized method to be used for performance improvements.
public static EnqueueQuickCallback ( this test, System.Action callback ) : void
test this The work item test.
callback System.Action The callback action or method.
return void

EnqueueQuickConditional() public static method

Enqueues a conditional statement into the task queue. The method will run immediately following the previous work item, and may not leave any time before executing the next. This is a specialized method to be used for performance improvements.
public static EnqueueQuickConditional ( this test, Func conditional ) : void
test this The work item test.
conditional Func The conditional function or statement.
return void

EnqueueQuickWorkItem() public static method

Enqueues a work item into the task queue. The work item will run immediately following the previous work item, and may not leave any time before executing the next. This is a specialized method to be used for performance improvements.
public static EnqueueQuickWorkItem ( this test, WorkItem workItem ) : void
test this The work item test.
workItem WorkItem The unit of work.
return void