Useful extensions contribution by Bnaya Eshet
this library available on NuGet via
## This library have the following goodies:
A small library that implements an improved version of System.Threading.CancellationToken with support for removable registrations, to allow for garbage collection in the presence of long-lived tokens, plus some related utilities.
Motivation: cancellation tokens can be the source of memory "leaks",...
An observable collection where items are removed when a lifetime paired with them ends.
Affords projecting, filtering, and other functional-style usage by removing the need to equate removed items with previously added items.
A dead man's switch is designed to detect a worker task that is no longer making progress and cancel it. It does this by cancelling a CancellationToken that is provided to the worker from the start. In turn, the process is responsible for notifying the dead man's switch in a periodic fashion to...
Serilog filter for excluding operation cancelled exceptions.
This also includes filtering out error logs generated by Entity Framework, when underlying DatabaseCommand receieves triggered cancellation token, and that cancellation was intentional.
Can be used as workaround for...