Click or drag to resize

IDispatcherMessageLoop Interface

Represents a thread running a message loop. This is the non-Gui part of the interface. The Gui interface will contain a dispatcher object, and additional possibilities to set the priority.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public interface IDispatcherMessageLoop : ISynchronizeInvoke

The IDispatcherMessageLoop type exposes the following members.

Properties
 NameDescription
Public propertyInvokeRequiredGets a value indicating whether the caller must call Invoke(Delegate, Object) when calling an object that implements this interface.
(Inherited from ISynchronizeInvoke)
Public propertySynchronizationContext Gets the synchronization context corresponding to this message loop.
Public propertySynchronizingObject Gets the ISynchronizeInvoke implementation corresponding to this message loop.
Public propertyThread Gets the thread that runs this message loop.
Top
Methods
 NameDescription
Public methodBeginInvokeAsynchronously executes the delegate on the thread that created this object.
(Inherited from ISynchronizeInvoke)
Public methodCheckAccess Gets whether the current thread is the same as the thread running this message loop.
Public methodEndInvokeWaits until the process started by calling BeginInvoke(Delegate, Object) completes, and then returns the value generated by the process.
(Inherited from ISynchronizeInvoke)
Public methodInvokeSynchronously executes the delegate on the thread that created this object and marshals the call to the creating thread.
(Inherited from ISynchronizeInvoke)
Public methodInvokeAndForget(Action) Invokes the specified callback on the message loop.
Public methodInvokeAndForgetT(ActionT, T) Executes an action synchronously with the Gui without waiting.
Public methodInvokeAndForgetT1, T2(ActionT1, T2, T1, T2) Executes an action synchronously with the Gui without waiting.
Public methodInvokeAndForgetT1, T2, T3(ActionT1, T2, T3, T1, T2, T3) Executes an action synchronously with the Gui without waiting.
Public methodInvokeAndForgetT1, T2, T3, T4(ActionT1, T2, T3, T4, T1, T2, T3, T4) Executes an action synchronously with the Gui without waiting.
Public methodInvokeAndForgetT1, T2, T3, T4, T5(ActionT1, T2, T3, T4, T5, T1, T2, T3, T4, T5) Executes an action synchronously with the Gui without waiting.
Public methodInvokeAsync(Action) Invokes the specified callback on the message loop.
Public methodInvokeAsyncT(FuncT) 
Public methodInvokeIfRequired(Action) Invokes the specified callback on the message loop and waits for its completion. If the current thread is the thread running the message loop, executes the callback directly without pumping the message loop.
Public methodInvokeIfRequiredT(FuncT) Invokes the specified callback, waits for its completion, and returns the result. If the current thread is the thread running the message loop, executes the callback directly without pumping the message loop.
Public methodInvokeIfRequiredT(ActionT, T) Executes an action synchronously with the GUI.
Public methodInvokeIfRequiredT, TResult(FuncT, TResult, T) Evaluates a function synchronously with the Gui.
Public methodInvokeIfRequiredT1, T2(ActionT1, T2, T1, T2) Executes an action synchronously with the GUI.
Public methodInvokeIfRequiredT1, T2, TResult(FuncT1, T2, TResult, T1, T2) 
Public methodInvokeIfRequiredT1, T2, T3(ActionT1, T2, T3, T1, T2, T3) Executes an action synchronously with the GUI.
Public methodInvokeIfRequiredT1, T2, T3, TResult(FuncT1, T2, T3, TResult, T1, T2, T3) 
Public methodInvokeIfRequiredT1, T2, T3, T4(ActionT1, T2, T3, T4, T1, T2, T3, T4) Executes an action synchronously with the GUI.
Public methodInvokeIfRequiredT1, T2, T3, T4, TResult(FuncT1, T2, T3, T4, TResult, T1, T2, T3, T4) 
Public methodInvokeIfRequiredT1, T2, T3, T4, T5(ActionT1, T2, T3, T4, T5, T1, T2, T3, T4, T5) Executes an action synchronously with the Gui.
Public methodInvokeIfRequiredT1, T2, T3, T4, T5, TResult(FuncT1, T2, T3, T4, T5, TResult, T1, T2, T3, T4, T5) 
Public methodInvokeIfRequiredT1, T2, T3, T4, T5, T6, TResult(FuncT1, T2, T3, T4, T5, T6, TResult, T1, T2, T3, T4, T5, T6) 
Public methodInvokeIfRequiredT1, T2, T3, T4, T5, T6, T7, TResult(FuncT1, T2, T3, T4, T5, T6, T7, TResult, T1, T2, T3, T4, T5, T6, T7) 
Public methodInvokeLaterAndForget Waits delay, then executes method on the message loop thread.
Public methodVerifyAccess Throws an exception if the current thread is different from the thread running this message loop.
Top
See Also