IMainThreadInvoker.InvokeAsync method
Executes an asynchronous operation on the main thread of the host application. The implementation of this method depends on the technology stack used by the host application. For example, WPF-based applications may use the Dispatcher for thread scheduling, while Windows Forms applications may use the Control.Invoke method.
public Task<T> InvokeAsync<T>(Func<Task<T>> func)
| parameter | description |
|---|---|
| T | The return type of the asynchronous operation. |
| func | The asynchronous operation to execute on the main thread. |
Return Value
A task that represents the asynchronous operation and its result.
See Also
- interface IMainThreadInvoker
- namespace Autodesk.DataExchange.UI.Core.Interfaces