Info
Version: | 1.1.0 |
Author(s): | Piotr Kosek |
Last Update: | Wednesday, January 6, 2021 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Kosek.DisposableEvent |
Install
Install-Package Kosek.DisposableEvent
dotnet add package Kosek.DisposableEvent
paket add Kosek.DisposableEvent
Kosek.DisposableEvent Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
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).