private void SendMessage(ResponseMessage msg) { try { if (Chanel.State == CommunicationState.Opened) { _callBack.MessageOut(msg); } } catch (Exception ex) { Logger.Error("Connection problem", ex); } }
public void Send(ResponseMessage aResponse) { try { if (Chanel.State == CommunicationState.Opened) { _callBack.MessageOut(aResponse); } } catch (Exception ex) { Logger.Error("Connection problem", ex); } }