/soenneker.blazor.utils.interopeventlistener

Manages the registration, removal, and disposal of .NET object references used for interop event listeners.

Primary LanguageC#MIT LicenseMIT

Soenneker.Blazor.Utils.InteropEventListener

Manages the registration, removal, and disposal of .NET object references used for interop event listeners.

Handles warnings for potential duplicate registrations and providing methods for cleanup. The class is equipped with asynchronous and synchronous disposal mechanisms, as well as methods for adding event listeners with generic callback functions.

Installation

dotnet add package Soenneker.Blazor.Utils.InteropEventListener