public void Create_Standard_Queue() { string QueueName = "StandardQueue_ExampleQueue"; var payment1 = new Payment { AmountToPay = 10, CardNumber = "2948484", Name = "Bera" }; var payment2 = new Payment { AmountToPay = 20, CardNumber = "8848474", Name = "João" }; var _sq = new StandardQueueExample(QueueName); //_sq.CreateStandardQueue(); _sq.SendMessage(payment1); _sq.SendMessage(payment2); var recieve = _sq.Recieve(); }
public void Create_Worker_Queue() { var _sq = new StandardQueueExample(QueueName); for (int i = 15; i < 50; i++) { var payment6 = new Payment { AmountToPay = i, CardNumber = "2945973", Name = "Zé" }; _sq.SendMessage(payment6); } _sq.CreateStandardQueue(); }