-
Notifications
You must be signed in to change notification settings - Fork 595
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add more use of
CancellationToken
in Async methods. (#1468)
* Correctly dispose of `CancellationTokenSource` and `CancellationTokenRegistration` instances. * Refactor `Connection.Close` to use async internally. * Fix test by adding `WaitAsync` that also takes a timeout. * Add `ConfigureAwait` where it was missing. * Always create `CancellationTokenSource` for recovery, and dispose it. * Modify `WaitAsync` `Task` extension to see if `Task` has already completed. * Don't swallow exceptions unless `abort` is specified. * Add `TaskCreationOptions` to two spots. * Add `SetSessionClosingAsync` * Use `CancellationToken` to stop receieve loop. * Pass the main loop `CancellationToken` into `HardProtocolExceptionHandlerAsync`. * Pass `CancellationToken` to `IFrameHandler.CloseAsync`. * Remove remaining usage of `ThreadPool`
- Loading branch information
1 parent
220f5a5
commit 1fa0562
Showing
42 changed files
with
949 additions
and
710 deletions.
There are no files selected for viewing
29 changes: 0 additions & 29 deletions
29
projects/RabbitMQ.Client/FrameworkExtension/Interlocked.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.