Exemplo n.º 1
0
        internal void InvokeCall(Action callback)
        {
            SendOrPostBag bag = new SendOrPostBag(callback);

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

            SynchronizationContext.Send(new SendOrPostCallback(bag.Execute), null);
        }