static void Main(string[] args) { string endpointName = ConfigurationManager.AppSettings["endpointName"] ?? "SecurePeppolClient"; Console.WriteLine("Using endpoint configuration with name \"{0}\"..", endpointName); ServicePointManager.ServerCertificateValidationCallback = (sender, cert, chain, error) => { return(true); }; Console.WriteLine("\nStarting.."); //Send message StartMessage(endpointName, Certificates.FromConfig(endpointName)); //Make ping //MakePing(endpointName, "https://192.168.1.40:443/start-ap/accessPointService.svc"); Console.WriteLine("\nDone. Press any key to proceed."); Console.ReadKey(); }
static void MakePing(string endpointConfigName, string endpointAddress) { PingProcess(endpointConfigName, endpointAddress, Certificates.FromConfig(endpointConfigName)); }