notifications-net-client icon indicating copy to clipboard operation
notifications-net-client copied to clipboard

Added support for cancellation tokens

Open euantorano opened this issue 9 months ago • 1 comments

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 awaited.

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 and CHANGELOG.md)
  • [x] I’ve bumped the version number (in src/GovukNotify/GovukNotify.csproj)

euantorano avatar Sep 27 '23 07:09 euantorano