internal void InvokeCall(Action callback) { SendOrPostBag bag = new SendOrPostBag(callback); SynchronizationContext.Send(new SendOrPostCallback(bag.Execute), null); }
internal void InvokeCall(Action <Exception> callback, Exception reason) { SendOrPostBag <Exception> bag = new SendOrPostBag <Exception>(callback, reason); SynchronizationContext.Send(new SendOrPostCallback(bag.Execute), null); }