Example #1
0
        public Task DispatchAsync(Action act)
        {
            Action InContext = () =>
            {
                using (Enter())
                {
                    act();
                }
            };

            return(Runner.DispatchAsync(InContext));
        }
 public override void Post(SendOrPostCallback d, object state)
 {
     _TaskRunner.DispatchAsync(() => d(state));
 }