-
Notifications
You must be signed in to change notification settings - Fork 1.3k
CSHARP-5725: C# driver stopped working with Unity since v3.2.0 #1793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| connectTask = socket.ConnectAsync(endPoint); | ||
| #else | ||
| var dnsEndPoint = endPoint as DnsEndPoint; | ||
| if (dnsEndPoint != null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: (endPoints is DnsEndPoint dnsEndPoint)
BorisDog
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
|
||
| else | ||
| { | ||
| connectTask = Task.Factory.FromAsync(socket.BeginConnect(endPoint, null, null), socket.EndConnect); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: Probably regular socket.ConnectAsync can be used?
| await Task.WhenAny(connectTask, timeoutTask).ConfigureAwait(false); | ||
|
|
||
| if (!connectTask.IsCompleted) | ||
| #if !NET472 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add same ifdef in sync Connect
BorisDog
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New comment
BorisDog
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.