Click or drag to resize

IDispatcherMessageLoopInvokeIfRequiredT(FuncT) Method

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.

Namespace: Altaxo.Main.Services
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
T InvokeIfRequired<T>(
	Func<T> callback
)

Parameters

callback  FuncT
The callback to execute.

Type Parameters

T
The type of the callback result.

Return Value

T
The callback result.
See Also