Skip to content

Commit

Permalink
Changing security protocol config to occur on app start instead of Ap…
Browse files Browse the repository at this point in the history
…iBase so that all HTTP calls are covered.
  • Loading branch information
Zachary Way committed Apr 15, 2019
1 parent 0d28cba commit e16af5b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Automaton.Model/NexusApi/ApiBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public async Task<bool> InitializeAsync(string apiKey = "")
public bool Initialize(string apiKey = "")
{
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;


_logger.WriteLine("Initializing API base");

HttpClient = new HttpClient()
Expand Down

0 comments on commit e16af5b

Please sign in to comment.