public void SendCloseCommandToService() { if (IsConnected) { //Need to restart the log list CommandRecievedEventArgs command = new CommandRecievedEventArgs((int)CommandEnum.WindowClosedCommand, null, null); client.Write(command.ToJson()); } }
public void SendCommandToService(CommandRecievedEventArgs command) { client.Write(command.ToJson()); }