@@ -505,7 +505,7 @@ internal async Task ClientAckAsync(int packetId, CancellationToken cancellationT
505505 Id = packetId
506506 } ;
507507 }
508- await Router . SendAsync ( msg , cancellationToken ) ;
508+ await Router . SendAsync ( msg , cancellationToken ) . ConfigureAwait ( false ) ;
509509 }
510510
511511 /// <summary>
@@ -516,7 +516,7 @@ internal async Task ClientAckAsync(int packetId, CancellationToken cancellationT
516516 /// <returns></returns>
517517 public async Task EmitAsync ( string eventName , params object [ ] data )
518518 {
519- await EmitAsync ( eventName , CancellationToken . None , data ) ;
519+ await EmitAsync ( eventName , CancellationToken . None , data ) . ConfigureAwait ( false ) ;
520520 }
521521
522522 public async Task EmitAsync ( string eventName , CancellationToken cancellationToken , params object [ ] data )
@@ -533,7 +533,7 @@ public async Task EmitAsync(string eventName, CancellationToken cancellationToke
533533 Event = eventName ,
534534 Json = result . Json
535535 } ;
536- await Router . SendAsync ( msg , cancellationToken ) ;
536+ await Router . SendAsync ( msg , cancellationToken ) . ConfigureAwait ( false ) ;
537537 }
538538 else
539539 {
@@ -543,7 +543,7 @@ public async Task EmitAsync(string eventName, CancellationToken cancellationToke
543543 Event = eventName ,
544544 Json = result . Json
545545 } ;
546- await Router . SendAsync ( msg , cancellationToken ) ;
546+ await Router . SendAsync ( msg , cancellationToken ) . ConfigureAwait ( false ) ;
547547 }
548548 }
549549 else
@@ -553,7 +553,7 @@ public async Task EmitAsync(string eventName, CancellationToken cancellationToke
553553 Namespace = Namespace ,
554554 Event = eventName
555555 } ;
556- await Router . SendAsync ( msg , cancellationToken ) ;
556+ await Router . SendAsync ( msg , cancellationToken ) . ConfigureAwait ( false ) ;
557557 }
558558 }
559559
@@ -566,7 +566,7 @@ public async Task EmitAsync(string eventName, CancellationToken cancellationToke
566566 /// <returns></returns>
567567 public async Task EmitAsync ( string eventName , Action < SocketIOResponse > ack , params object [ ] data )
568568 {
569- await EmitAsync ( eventName , CancellationToken . None , ack , data ) ;
569+ await EmitAsync ( eventName , CancellationToken . None , ack , data ) . ConfigureAwait ( false ) ;
570570 }
571571
572572 public async Task EmitAsync ( string eventName , CancellationToken cancellationToken , Action < SocketIOResponse > ack , params object [ ] data )
@@ -585,7 +585,7 @@ public async Task EmitAsync(string eventName, CancellationToken cancellationToke
585585 Id = _packetId ,
586586 OutgoingBytes = new List < byte [ ] > ( result . Bytes )
587587 } ;
588- await Router . SendAsync ( msg , cancellationToken ) ;
588+ await Router . SendAsync ( msg , cancellationToken ) . ConfigureAwait ( false ) ;
589589 }
590590 else
591591 {
@@ -596,7 +596,7 @@ public async Task EmitAsync(string eventName, CancellationToken cancellationToke
596596 Id = _packetId ,
597597 Json = result . Json
598598 } ;
599- await Router . SendAsync ( msg , cancellationToken ) ;
599+ await Router . SendAsync ( msg , cancellationToken ) . ConfigureAwait ( false ) ;
600600 }
601601 }
602602 else
@@ -607,7 +607,7 @@ public async Task EmitAsync(string eventName, CancellationToken cancellationToke
607607 Namespace = Namespace ,
608608 Id = _packetId
609609 } ;
610- await Router . SendAsync ( msg , cancellationToken ) ;
610+ await Router . SendAsync ( msg , cancellationToken ) . ConfigureAwait ( false ) ;
611611 }
612612 }
613613
@@ -619,7 +619,7 @@ private async void InvokeDisconnect(string reason)
619619 OnDisconnected ? . Invoke ( this , reason ) ;
620620 try
621621 {
622- await Router . DisconnectAsync ( ) ;
622+ await Router . DisconnectAsync ( ) . ConfigureAwait ( false ) ;
623623 }
624624 catch ( Exception e )
625625 {
0 commit comments