AngleSharp by AngleSharp

<PackageReference Include="AngleSharp" Version="0.9.11" />

.NET API 1,230,848 bytes

 InteractivityEvent<T>

public class InteractivityEvent<T> : Event
The event that is published in case of an interactivity request coming from the dynamic DOM.
using System.Threading.Tasks; namespace AngleSharp.Dom.Events { public class InteractivityEvent<T> : Event { private Task _result; public Task Result => _result; public T Data { get; set; } public InteractivityEvent(string eventName, T data) : base(eventName, false, false) { Data = data; } public void SetResult(Task value) { if (_result != null) _result = TaskEx.WhenAll(_result, value); else _result = value; } } }