public void AsyncPost(SendOrPostCallback callback, object state) { if (IsAsyncCreatorThread) callback(state); // Call the method directly else AsynchronizationContext.Post(callback, state); // Post on creator thread } }
public void AsyncPost(SendOrPostCallback callback, object state) { _asyncContext.AsyncPost(callback, state); }