public override void MessageReject(Session session, MessageReject mstruct)
 {
     foreach (Range range in mstruct.GetTransfers())
     {
         for (long l = range.Lower; l <= range.Upper; l++)
         {
             _log.Warn("message rejected: " + session.GetCommand((int) l));
         }
     }
 }
 //  --------------------------------------------
 //   Message methods
 // --------------------------------------------
 public override void MessageTransfer(Session session, MessageTransfer xfr)
 {
     if (((ClientSession) session).MessageListeners.ContainsKey(xfr.GetDestination()))
     {
         IMessageListener listener = ((ClientSession)session).MessageListeners[xfr.GetDestination()];
         listener.MessageTransfer( new Message(xfr));
     }
     else
     {
         _log.Warn("No listener set for: {0}", xfr);
     }
 }