protected override void OnStartup(StartupEventArgs e) { //some devices don't understand http header "Expect: 100-Continue" ServicePointManager.Expect100Continue = false; //accept any certificate for tls connections ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, policyErrors) => { return true; }; LoadCurrentLanguage(); base.OnStartup(e); OdmBootstrapper bootstrapper = new OdmBootstrapper(); LoadPlugins(); bootstrapper.Run(); }
protected override void OnStartup(StartupEventArgs e) { //some devices don't understand http header "Expect: 100-Continue" ServicePointManager.Expect100Continue = false; //accept any certificate for tls connections ServicePointManager.ServerCertificateValidationCallback = (sender, certificate, chain, policyErrors) => { return(true); }; LoadCurrentLanguage(); base.OnStartup(e); OdmBootstrapper bootstrapper = new OdmBootstrapper(); LoadPlugins(); bootstrapper.Run(); }