Useful extensions contribution by Bnaya Eshet
Blog: http://blogs.microsoft.co.il/bnaya/
Source Code:
https://github.com/bnayae/Bnaya.CSharp.AsyncExtensions
# NuGet
this library available on NuGet via
Install-Package Bnaya.CSharp.AsyncExtensions
## This library have the following goodies:
*...
More information
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",...
More information
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...
More information
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...
More information