Table of Contents

Class ConnectionLostEventArgs

Namespace
WebDriverBiDi.Protocol
Assembly
WebDriverBiDi.dll

Object containing event data for the event raised when an established WebDriver BiDi connection ends without the client stopping it: the remote end closed it, or it failed.

public record ConnectionLostEventArgs : WebDriverBiDiEventArgs, IEquatable<WebDriverBiDiEventArgs>, IEquatable<ConnectionLostEventArgs>
Inheritance
ConnectionLostEventArgs
Implements
Inherited Members

Constructors

ConnectionLostEventArgs(ConnectionLostEventArgs)

protected ConnectionLostEventArgs(ConnectionLostEventArgs original)

Parameters

original ConnectionLostEventArgs

ConnectionLostEventArgs(WebDriverBiDiConnectionException)

Initializes a new instance of the ConnectionLostEventArgs class.

public ConnectionLostEventArgs(WebDriverBiDiConnectionException exception)

Parameters

exception WebDriverBiDiConnectionException

The exception describing the loss, of the kind commands in flight failed with.

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Exception

Gets the exception describing the loss, of the kind commands in flight failed with: its message says whether the remote end closed the connection or the connection failed, and for a failure, its inner exception is the connection's error.

public WebDriverBiDiConnectionException Exception { get; }

Property Value

WebDriverBiDiConnectionException

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ConnectionLostEventArgs?)

public virtual bool Equals(ConnectionLostEventArgs? other)

Parameters

other ConnectionLostEventArgs

Returns

bool

Equals(WebDriverBiDiEventArgs?)

public override sealed bool Equals(WebDriverBiDiEventArgs? other)

Parameters

other WebDriverBiDiEventArgs

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ConnectionLostEventArgs?, ConnectionLostEventArgs?)

public static bool operator ==(ConnectionLostEventArgs? left, ConnectionLostEventArgs? right)

Parameters

left ConnectionLostEventArgs
right ConnectionLostEventArgs

Returns

bool

operator !=(ConnectionLostEventArgs?, ConnectionLostEventArgs?)

public static bool operator !=(ConnectionLostEventArgs? left, ConnectionLostEventArgs? right)

Parameters

left ConnectionLostEventArgs
right ConnectionLostEventArgs

Returns

bool