Method Invoke
Invoke(Action<IApplication>)
Runs action on the main UI loop thread.
[Obsolete("The legacy static Application object is going away.")]
public static void Invoke(Action<IApplication> action)
Parameters
actionAction<IApplication>The action to be invoked on the main processing thread.
Remarks
If called from the main thread, the action is executed immediately. Otherwise, it is queued via AddTimeout(TimeSpan, Func<bool>) with Zero and will be executed on the next main loop iteration.
Invoke(Action)
Runs action on the main UI loop thread.
[Obsolete("The legacy static Application object is going away.")]
public static void Invoke(Action action)
Parameters
actionActionThe action to be invoked on the main processing thread.
Remarks
If called from the main thread, the action is executed immediately. Otherwise, it is queued via AddTimeout(TimeSpan, Func<bool>) with Zero and will be executed on the next main loop iteration.