Exemplo n.º 1
0
        public void ProcessCDOMessage(CDO.Message message)
        {
            try
            {
                this.Agent.ProcessMessage(message);
            }
            catch (Exception ex)
            {
                Logger.Fatal("While ProcessCDOMessage", ex);

                //
                // Paranoia of last resort. A malconfigured or malfunctioning agent should NEVER let ANY messages through
                //
                try
                {
                    message.AbortMessage();
                }
                catch (Exception ex2)
                {
                    Logger.Fatal("While aborting message", ex2);
                }

                throw;
            }
        }
Exemplo n.º 2
0
 //---------------------------------------------------
 //
 //  Message Processing
 //
 //---------------------------------------------------
 public void ProcessMessage(CDO.Message message)
 {
     try
     {
         this.ProcessMessage(new CDOSmtpMessage(message));
     }
     catch
     {
         // Paranoia
         message.AbortMessage();
         throw;
     }
 }