Application.DeferredInvokeOnWorkerThread Method
Schedules two callbacks to occur at a future timeāone callback on a background thread, and another callback on the application thread after the first callback has completed.
Syntax
public static void DeferredInvokeOnWorkerThread(
DeferredHandler
workerMethod
,
DeferredHandler notifyMethod,
object args
);
Parameters
workerMethod
Microsoft.MediaCenter.UI.DeferredHandler. The callback method to be called on the worker thread.
notifyMethod
Microsoft.MediaCenter.UI.DeferredHandler. The callback method to be called on the application thread when the work is done.
args
System.Object. The objects to be passed as parameters to both delegates.
Remarks
This method is useful when you have data to load on a background thread, and then need to act on that data on the application thread.
This method is safe to call from any thread.
Requirements
Reference: Microsoft.MediaCenter.UI
Namespace: Microsoft.MediaCenter.UI
Assembly: Microsoft.MediaCenter.UI.dll
Platform: Windows Vista Ultimate, Windows Vista Home Premium, and later
See Also