public App() { ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11; this.DispatcherUnhandledException += App_DispatcherUnhandledException; }