예제 #1
0
 private void ManageError(Envelop <Person> envelop)
 {
     if (envelop.RetriesCount <= 2)
     {
         envelop.RetriesCount++;
         Log.WriteLine($":: Inserting {envelop.Content.Name} to retry queue ::");
         QueueUow.Push(RetryQueue, envelop);
     }
     else
     {
         Log.WriteLine($":: Inserting {envelop.Content.Name} to error queue ::");
         QueueUow.Push(ErrorQueue, envelop);
     }
 }
예제 #2
0
 public void Push(Person person)
 {
     QueueUow.Push(QueueName, person);
 }