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); } }
public void Push(Person person) { QueueUow.Push(QueueName, person); }