Class InteractivityEvent<T>
- Namespace
- AngleSharp.Browser.Dom.Events
- Assembly
- AngleSharp.dll
The event that is published in case of an interactivity request coming from the dynamic DOM.
public class InteractivityEvent<T> : Event
Type Parameters
T
- Inheritance
-
InteractivityEvent<T>
- Inherited Members
- Extension Methods
Constructors
InteractivityEvent(string, T)
Creates a new event for an interactivity request.
public InteractivityEvent(string eventName, T data)
Parameters
eventName
stringThe name of the event.
data
TThe data to be transported.
Properties
Data
Gets the transported data.
public T Data { get; }
Property Value
- T
Result
Gets the currently set result, if any.
public Task? Result { get; }
Property Value
Methods
SetResult(Task)
Sets the result to the given value. Multiple results will be combined accordingly.
public void SetResult(Task value)
Parameters
value
TaskThe resulting task.