Class EventInvoker<T>
- Namespace
- WebDriverBiDi.Protocol
- Assembly
- WebDriverBiDi.dll
Object containing data about a WebDriver BiDi event where the data type is specifically known.
public class EventInvoker<T> : EventInvoker
Type Parameters
TThe type of the data for the event.
- Inheritance
-
EventInvoker<T>
- Inherited Members
Constructors
EventInvoker(Func<EventInfo<T>, Task>)
Initializes a new instance of the EventInvoker<T> class.
public EventInvoker(Func<EventInfo<T>, Task> asyncInvokerDelegate)
Parameters
asyncInvokerDelegateFunc<EventInfo<T>, Task>The asynchronous delegate to use when invoking the event.
Methods
InvokeEventAsync(object?, ReceivedDataDictionary, ReceivedDataDictionary)
Asynchronously invokes the event.
public override Task InvokeEventAsync(object? eventData, ReceivedDataDictionary additionalData, ReceivedDataDictionary additionalEventProperties)
Parameters
eventDataobjectThe data to use when invoking the event.
additionalDataReceivedDataDictionaryAdditional data passed to the event for invocation.
additionalEventPropertiesReceivedDataDictionaryThe extension properties received on the event envelope.
Returns
- Task
A task representing the asynchronous operation.
Exceptions
- WebDriverBiDiException
Thrown when the type of the event data is not the type associated with this event data class.