Table of Contents

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

T

The 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

asyncInvokerDelegate Func<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

eventData object

The data to use when invoking the event.

additionalData ReceivedDataDictionary

Additional data passed to the event for invocation.

additionalEventProperties ReceivedDataDictionary

The 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.