Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            MessageLoop messageLoop = new MessageLoop("UI_Thread");

            messageLoop.Enqueue(() =>
            {
                SynchronizationContext context = SynchronizationContext.Current;

                AsyncOperationSyncContext(5000).Wait();
                Console.WriteLine("Hello Await!");
            });
        }
 public MessageLoopSyncContext(MessageLoop worker)
 {
     myWorker = worker;
 }