Table of Contents

Interface IEventSource<TEventArgs>

Namespace
OpenQA.Selenium.BiDi
Assembly
Selenium.WebDriver.dll
public interface IEventSource<TEventArgs> where TEventArgs : EventArgs

Type Parameters

TEventArgs

Methods

StreamAsync(CancellationToken)

Task<IEventStream<TEventArgs>> StreamAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Returns

Task<IEventStream<TEventArgs>>

SubscribeAsync(Action<TEventArgs>, CancellationToken)

Task<ISubscription> SubscribeAsync(Action<TEventArgs> handler, CancellationToken cancellationToken = default)

Parameters

handler Action<TEventArgs>
cancellationToken CancellationToken

Returns

Task<ISubscription>

SubscribeAsync(Func<TEventArgs, Task>, CancellationToken)

Task<ISubscription> SubscribeAsync(Func<TEventArgs, Task> handler, CancellationToken cancellationToken = default)

Parameters

handler Func<TEventArgs, Task>
cancellationToken CancellationToken

Returns

Task<ISubscription>