File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
projects/client/RabbitMQ.Client/src/client/impl Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ static class TaskExtensions
54
54
{
55
55
public static async Task TimeoutAfter ( this Task task , int millisecondsTimeout )
56
56
{
57
- if ( task == await Task . WhenAny ( task , Task . Delay ( millisecondsTimeout ) ) )
57
+ if ( task == await Task . WhenAny ( task , Task . Delay ( millisecondsTimeout ) ) . ConfigureAwait ( false ) )
58
58
await task ;
59
59
else
60
60
throw new TimeoutException ( ) ;
Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ public TcpClientAdapter(Socket socket)
26
26
27
27
public virtual async Task ConnectAsync ( string host , int port )
28
28
{
29
- var adds = await System . Net . Dns . GetHostAddressesAsync ( host ) ;
29
+ var adds = await Dns . GetHostAddressesAsync ( host ) . ConfigureAwait ( false ) ;
30
30
var ep = adds . First ( ) ;
31
31
#if CORECLR
32
32
await sock . ConnectAsync ( ep , port ) ;
33
33
#else
34
34
sock . Connect ( ep , port ) ;
35
- await System . Threading . Tasks . Task . FromResult ( false ) ;
35
+ await Task . FromResult ( false ) ;
36
36
#endif
37
37
}
38
38
You can’t perform that action at this time.
0 commit comments