[CSHARP-2952] Check SslStream authentication methods when targetting netstandard2.0 Created: 07/Feb/20  Updated: 05/May/21  Resolved: 05/May/21

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Robert Stam Assignee: Mikalai Mazurenka (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Enable features that can now be supported when targetting netstandard2.0

 Description   

Some new methods might be available in netstandard2.0 making calling Async methods synchronously unnecessary.



 Comments   
Comment by Mikalai Mazurenka (Inactive) [ 05/May/21 ]

There are 2 occurrences of SslStream.AuthenticateAsClientAsync methods used in a sync context because of lack of sync version in netstandard 1.5 throughout the solution (test projects are excluded):
1. LibMongoCryptControllerBase.SendKmsRequest
2. SslStreamFactory.CreateStream
Both of these cases are covered and use a sync version of the method in targets other than netstandard 1.5.

As a summary, no changes are required in scope of this ticket, thus closing it as implemented.

Generated at Wed Feb 07 21:43:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.