Ejemplo n.º 1
0
        public static void Initialize()
        {
            var standardQueue = new StandardQueue();

            for (int i = 0; i < 10; i++)
            {
                var payment = new Payment
                {
                    AmountToPay = i * 10000,
                    CardNumber  = "XXXX-XXXX-XXXX-XXXX",
                    Name        = "Hariharan"
                };
                standardQueue.PublishPayment(payment);
            }

            Console.WriteLine("Press enter to trigger consumption of messages");
            Console.ReadLine();

            standardQueue.InitiateConsumption();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            StandardQueue.Initialize();

            Console.ReadKey();
        }