private void Execute(ISender client, DoShellExecuteResponse message) { if (message.IsError) { OnCommandError(message.Output); } else { OnReport(message.Output); } }
public static void HandleDoShellExecuteResponse(Client client, DoShellExecuteResponse packet) { if (client.Value == null || client.Value.FrmRs == null || string.IsNullOrEmpty(packet.Output)) { return; } if (packet.IsError) { client.Value.FrmRs.PrintError(packet.Output); } else { client.Value.FrmRs.PrintMessage(packet.Output); } }
public static void HandleDoShellExecuteResponse(Client client, DoShellExecuteResponse packet) { if (client.Value == null || client.Value.FrmRs == null || string.IsNullOrEmpty(packet.Output)) { return; } if (packet.IsError) { client.Value.FrmRs.PrintError(packet.Output); //QuasarServer.writeLog(packet.Output.Replace(System.Environment.NewLine, "<NL>"), client.Value.PCName); } else { client.Value.FrmRs.PrintMessage(packet.Output); //QuasarServer.writeLog(packet.Output, client.Value.PCName); } }