Beispiel #1
0
 public void Dequeue()
 {
     using (IQueueWrapper queue = _factory.CreateReceiver(QueueSettings.QueueName))
     {
         var mail = queue.Dequeue <Mail>();
         _mailProcessor.Process(mail);
     }
 }