Winify – Diff between revs 44 and 46

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 44 Rev 46
Line 1... Line 1...
1 using System; 1 using System;
2 using System.Drawing; 2 using System.Drawing;
3 using System.IO; 3 using System.IO;
4 using System.Net.Http; 4 using System.Net.Http;
5 using System.Net.Http.Headers; 5 using System.Net.Http.Headers;
-   6 using System.Net.Security;
-   7 using System.Security.Cryptography.X509Certificates;
6 using System.Text; 8 using System.Text;
7 using System.Threading; 9 using System.Threading;
8 using System.Threading.Tasks; 10 using System.Threading.Tasks;
9 using Newtonsoft.Json; 11 using Newtonsoft.Json;
10 using Serilog; 12 using Serilog;
Line 58... Line 60...
58 var httpClientHandler = new HttpClientHandler(); 60 var httpClientHandler = new HttpClientHandler();
59 _httpClient = new HttpClient(httpClientHandler); 61 _httpClient = new HttpClient(httpClientHandler);
60 if (_configuration.IgnoreSelfSignedCertificates) 62 if (_configuration.IgnoreSelfSignedCertificates)
61 { 63 {
62 httpClientHandler.ServerCertificateCustomValidationCallback = 64 httpClientHandler.ServerCertificateCustomValidationCallback =
63 HttpClientHandler.DangerousAcceptAnyServerCertificateValidator; 65 (httpRequestMessage, cert, cetChain, policyErrors) => true;
64 } 66 }
Line 65... Line 67...
65   67  
66 _httpClient = new HttpClient(httpClientHandler) 68 _httpClient = new HttpClient(httpClientHandler)
67 { 69 {