Пример #1
0
 public bool TryReadResponse(out NamedPipeMessages.Message message)
 {
     try
     {
         message = NamedPipeMessages.Message.FromString(this.ReadRawResponse());
         return(true);
     }
     catch (BrokenPipeException)
     {
         message = null;
         return(false);
     }
 }
Пример #2
0
        public bool TrySendRequest(NamedPipeMessages.Message message)
        {
            try
            {
                this.SendRequest(message);
                return(true);
            }
            catch (BrokenPipeException)
            {
            }

            return(false);
        }
Пример #3
0
 public void SendRequest(NamedPipeMessages.Message message)
 {
     this.SendRequest(message.ToString());
 }
Пример #4
0
 public bool TrySendResponse(NamedPipeMessages.Message message)
 {
     return(this.TrySendResponse(message.ToString()));
 }