protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_messageChannel != null)
         {
             _messageChannel.Dispose();
             _messageChannel = null;
         }
         if (_channelGroup != null)
         {
             _channelGroup.Dispose();
             _channelGroup = null;
         }
     }
 }