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)); }
public void Debug(string message) { if (!_ipcClient.IsOpen) { return; } _ipcClient.Send(new DebugAnperiMessage(message).ToIpcMessage()); }