Beispiel #1
0
 private void Enque(IQueableMailMessage message)
 {
     try
     {
         //log.Debug("Adding mail message to queue");
         queue.Add(message);
         //log.Debug("Mail message queued");
     }
     catch (Exception e)
     {
         //log.Error("Error adding mail to queue", e);
         throw new MailException(e);
     }
 }
Beispiel #2
0
 protected override void Dequeue(IQueableMailMessage msg)
 {
     // already was dequeue on read. no-op
 }
Beispiel #3
0
 protected override void Requeue(IQueableMailMessage msg)
 {
     Enque(msg);
 }
 protected override void Dequeue(IQueableMailMessage msg)
 {
     store.Delete((StorableMailMessage)msg);
 }
 protected override void Requeue(IQueableMailMessage msg)
 {
     // TODO change next retry date
     store.Update((StorableMailMessage)msg);
 }
Beispiel #6
0
 protected abstract void Dequeue(IQueableMailMessage msg);