Winify – Diff between revs 51 and 54
?pathlinks?
Rev 51 | Rev 54 | |||
---|---|---|---|---|
Line 60... | Line 60... | |||
60 | public GotifyConnection(Server server, global::Configuration.Configuration configuration) : this() |
60 | public GotifyConnection(Server server, global::Configuration.Configuration configuration) : this() |
|
61 | { |
61 | { |
|
62 | _server = server; |
62 | _server = server; |
|
63 | _configuration = configuration; |
63 | _configuration = configuration; |
|
Line -... | Line 64... | |||
- | 64 | |
||
64 | |
65 | ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; |
|
65 | var httpClientHandler = new HttpClientHandler() |
66 | var httpClientHandler = new HttpClientHandler() |
|
- | 67 | { |
||
66 | { |
68 | // mono does not implement this |
|
67 | SslProtocols = SslProtocols.Tls12 |
69 | //SslProtocols = SslProtocols.Tls12 |
|
Line 68... | Line 70... | |||
68 | }; |
70 | }; |
|
69 | |
71 | |
|
70 | _httpClient = new HttpClient(httpClientHandler); |
72 | _httpClient = new HttpClient(httpClientHandler); |