@@ -196,7 +196,7 @@ protected void TakeOver(Channel other)
196
196
public Task CloseAsync ( ushort replyCode , string replyText , bool abort ,
197
197
CancellationToken cancellationToken )
198
198
{
199
- var args = new ShutdownEventArgs ( ShutdownInitiator . Application , replyCode , replyText ) ;
199
+ var args = new ShutdownEventArgs ( ShutdownInitiator . Application , replyCode , replyText , cancellationToken : cancellationToken ) ;
200
200
return CloseAsync ( args , abort , cancellationToken ) ;
201
201
}
202
202
@@ -725,7 +725,7 @@ await Session.Connection.HandleConnectionBlockedAsync(reason, cancellationToken)
725
725
protected async Task < bool > HandleConnectionCloseAsync ( IncomingCommand cmd , CancellationToken cancellationToken )
726
726
{
727
727
var method = new ConnectionClose ( cmd . MethodSpan ) ;
728
- var reason = new ShutdownEventArgs ( ShutdownInitiator . Peer , method . _replyCode , method . _replyText , method . _classId , method . _methodId ) ;
728
+ var reason = new ShutdownEventArgs ( ShutdownInitiator . Peer , method . _replyCode , method . _replyText , method . _classId , method . _methodId , cancellationToken : cancellationToken ) ;
729
729
try
730
730
{
731
731
await Session . Connection . ClosedViaPeerAsync ( reason , cancellationToken )
@@ -763,7 +763,7 @@ protected async Task<bool> HandleConnectionStartAsync(IncomingCommand cmd, Cance
763
763
{
764
764
if ( m_connectionStartCell is null )
765
765
{
766
- var reason = new ShutdownEventArgs ( ShutdownInitiator . Library , Constants . CommandInvalid , "Unexpected Connection.Start" ) ;
766
+ var reason = new ShutdownEventArgs ( ShutdownInitiator . Library , Constants . CommandInvalid , "Unexpected Connection.Start" , cancellationToken : cancellationToken ) ;
767
767
await Session . Connection . CloseAsync ( reason , false ,
768
768
InternalConstants . DefaultConnectionCloseTimeout ,
769
769
cancellationToken )
0 commit comments