diff --git a/GmailAPIHelper/GmailHelper.cs b/GmailAPIHelper/GmailHelper.cs index 8f774fe..ab7e373 100644 --- a/GmailAPIHelper/GmailHelper.cs +++ b/GmailAPIHelper/GmailHelper.cs @@ -141,7 +141,6 @@ public static GmailService GetGmailService(string applicationName, TokenPathType new FileDataStore(credPath, true)).Result; } //Create Gmail API service. - ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12; var service = new GmailService(new BaseClientService.Initializer() { HttpClientInitializer = credential,