示例#1
0
        public IIpcResponse SendMessage(string command)
        {
            var message      = new IpcMessage(command);
            var messageJson  = JsonConvert.SerializeObject(message);
            var responseJson = _ipcClient.Send(messageJson);

            return(JsonConvert.DeserializeObject <IpcResponse>(responseJson));
        }
示例#2
0
 public void Debug(string message)
 {
     if (!_ipcClient.IsOpen)
     {
         return;
     }
     _ipcClient.Send(new DebugAnperiMessage(message).ToIpcMessage());
 }