예제 #1
0
		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();
		}
예제 #2
0
        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();
        }