Пример #1
0
        static async Task MainAsync()
        {
            var powerPointBus = new ServiceBus(ServiceBusQueues.PowerPoint, HandlePowerPointMessage);
            var gitBus        = new ServiceBus(ServiceBusQueues.GitQueue, HandleGitMessage);

            Console.WriteLine("======================================================");
            Console.WriteLine("Press ENTER key to exit after receiving all the messages.");
            Console.WriteLine("======================================================");

            Console.ReadKey();

            await powerPointBus.CloseAsync();

            await gitBus.CloseAsync();
        }