예제 #1
0
        static void ReturnErrorMessagesDemo()
        {
            // demonstrate moving messages from error queue to read queue

            IBus bus = new BusBuilder()
                       .WithLogging(new FileLogger())
                       .DefineErrorQueue("MiniBus.errors")
                       .DefineReadQueue("MiniBus.messages1")
                       .CreateLocalQueuesAutomatically()
                       .CreateBus();

            bus.ReturnErrorMessages();

            Console.WriteLine("\nPress a key to exit");
            Console.ReadLine();
            bus.Dispose();
        }