notifications-net-client
notifications-net-client copied to clipboard
Added support for cancellation tokens
What problem does the pull request solve?
Fixes #176 by adding support for passing CancellationToken
parameters to asynchronous methods.
Also fixes #130 - rather than accessing a Task
result directly the task should be await
ed.
These changes allow early cancellation of requests.
Checklist
- [x] I’ve used the pull request template
- [x] I’ve written unit tests for these changes
- [x] I’ve update the documentation (in
DOCUMENATION.md
andCHANGELOG.md
) - [x] I’ve bumped the version number (in
src/GovukNotify/GovukNotify.csproj
)