File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
ServiceControl.Audit/Auditing
ServiceControl/Operations Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,9 @@ async Task EnsureStopped(CancellationToken cancellationToken)
185185 try
186186 {
187187 await startStopSemaphore . WaitAsync ( cancellationToken ) ;
188+
189+ // By passing a CancellationToken in the cancelled state we stop receivers ASAP and
190+ // still correctly stop/shutdown
188191 await StopAndTeardownInfrastructure ( new CancellationToken ( canceled : true ) ) ;
189192 }
190193 finally
Original file line number Diff line number Diff line change @@ -293,6 +293,9 @@ async Task EnsureStopped(CancellationToken cancellationToken = default)
293293 try
294294 {
295295 await startStopSemaphore . WaitAsync ( cancellationToken ) ;
296+
297+ // By passing a CancellationToken in the cancelled state we stop receivers ASAP and
298+ // still correctly stop/shutdown
296299 await StopAndTeardownInfrastructure ( new CancellationToken ( canceled : true ) ) ;
297300 }
298301 finally
You can’t perform that action at this time.
0 commit comments