Пример #1
0
 private void SendMessage(ResponseMessage msg)
 {
     try
     {
         if (Chanel.State == CommunicationState.Opened)
         {
             _callBack.MessageOut(msg);
         }
     }
     catch (Exception ex)
     {
         Logger.Error("Connection problem", ex);
     }
 }
Пример #2
0
 public void Send(ResponseMessage aResponse)
 {
     try
     {
         if (Chanel.State == CommunicationState.Opened)
         {
             _callBack.MessageOut(aResponse);
         }
     }
     catch (Exception ex)
     {
         Logger.Error("Connection problem", ex);
     }
 }