Class BiDi
public sealed class BiDi : IBiDi, IAsyncDisposable
- Inheritance
-
BiDi
- Implements
- Inherited Members
- Extension Methods
Properties
Browser
public IBrowserModule Browser { get; }
Property Value
BrowsingContext
public IBrowsingContextModule BrowsingContext { get; }
Property Value
Emulation
public IEmulationModule Emulation { get; }
Property Value
Input
public IInputModule Input { get; }
Property Value
Log
public ILogModule Log { get; }
Property Value
Network
public INetworkModule Network { get; }
Property Value
Script
public IScriptModule Script { get; }
Property Value
Storage
public IStorageModule Storage { get; }
Property Value
WebExtension
public IWebExtensionModule WebExtension { get; }
Property Value
Methods
AsModule<T>()
public T AsModule<T>() where T : Module, new()
Returns
- T
Type Parameters
T
ConnectAsync(string, Action<BiDiOptionsBuilder>?, CancellationToken)
public static Task<IBiDi> ConnectAsync(string url, Action<BiDiOptionsBuilder>? configure = null, CancellationToken cancellationToken = default)
Parameters
urlstringconfigureAction<BiDiOptionsBuilder>cancellationTokenCancellationToken
Returns
DisposeAsync()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously.
public ValueTask DisposeAsync()
Returns
EndAsync(EndOptions?, CancellationToken)
public Task<EndResult> EndAsync(EndOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsEndOptionscancellationTokenCancellationToken
Returns
NewAsync(CapabilitiesRequest, NewOptions?, CancellationToken)
public Task<NewResult> NewAsync(CapabilitiesRequest capabilities, NewOptions? options = null, CancellationToken cancellationToken = default)
Parameters
capabilitiesCapabilitiesRequestoptionsNewOptionscancellationTokenCancellationToken
Returns
StatusAsync(StatusOptions?, CancellationToken)
public Task<StatusResult> StatusAsync(StatusOptions? options = null, CancellationToken cancellationToken = default)
Parameters
optionsStatusOptionscancellationTokenCancellationToken
Returns
StreamAsync<TEventArgs>(EventDescriptor<TEventArgs>, CancellationToken)
public Task<IEventStream<TEventArgs>> StreamAsync<TEventArgs>(EventDescriptor<TEventArgs> descriptor, CancellationToken cancellationToken = default) where TEventArgs : EventArgs
Parameters
descriptorEventDescriptor<TEventArgs>cancellationTokenCancellationToken
Returns
- Task<IEventStream<TEventArgs>>
Type Parameters
TEventArgs
StreamAsync<TEventArgs>(IEnumerable<EventDescriptor>, CancellationToken)
public Task<IEventStream<TEventArgs>> StreamAsync<TEventArgs>(IEnumerable<EventDescriptor> descriptors, CancellationToken cancellationToken = default) where TEventArgs : EventArgs
Parameters
descriptorsIEnumerable<EventDescriptor>cancellationTokenCancellationToken
Returns
- Task<IEventStream<TEventArgs>>
Type Parameters
TEventArgs
SubscribeAsync<TEventArgs>(EventDescriptor<TEventArgs>, Action<TEventArgs>, CancellationToken)
public Task<ISubscription> SubscribeAsync<TEventArgs>(EventDescriptor<TEventArgs> descriptor, Action<TEventArgs> handler, CancellationToken cancellationToken = default) where TEventArgs : EventArgs
Parameters
descriptorEventDescriptor<TEventArgs>handlerAction<TEventArgs>cancellationTokenCancellationToken
Returns
Type Parameters
TEventArgs
SubscribeAsync<TEventArgs>(EventDescriptor<TEventArgs>, Func<TEventArgs, Task>, CancellationToken)
public Task<ISubscription> SubscribeAsync<TEventArgs>(EventDescriptor<TEventArgs> descriptor, Func<TEventArgs, Task> handler, CancellationToken cancellationToken = default) where TEventArgs : EventArgs
Parameters
descriptorEventDescriptor<TEventArgs>handlerFunc<TEventArgs, Task>cancellationTokenCancellationToken
Returns
Type Parameters
TEventArgs
SubscribeAsync<TEventArgs>(IEnumerable<EventDescriptor>, Action<TEventArgs>, CancellationToken)
public Task<ISubscription> SubscribeAsync<TEventArgs>(IEnumerable<EventDescriptor> descriptors, Action<TEventArgs> handler, CancellationToken cancellationToken = default) where TEventArgs : EventArgs
Parameters
descriptorsIEnumerable<EventDescriptor>handlerAction<TEventArgs>cancellationTokenCancellationToken
Returns
Type Parameters
TEventArgs
SubscribeAsync<TEventArgs>(IEnumerable<EventDescriptor>, Func<TEventArgs, Task>, CancellationToken)
public Task<ISubscription> SubscribeAsync<TEventArgs>(IEnumerable<EventDescriptor> descriptors, Func<TEventArgs, Task> handler, CancellationToken cancellationToken = default) where TEventArgs : EventArgs
Parameters
descriptorsIEnumerable<EventDescriptor>handlerFunc<TEventArgs, Task>cancellationTokenCancellationToken
Returns
Type Parameters
TEventArgs