A smart and simple way to work with limited-lifetime events in .NET This package introduce the concept of Disposable events - when you subscribe to such event you will obtain IDisposable token, and when you call Dispose on it, the event subscription will be automatically removed. This will work regardless of action used to subscribe (such as lambdas, or other hard-to-unregister types)
$ dotnet add package Kosek.DisposableEventNo README available.