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
originalConnectionLostEventArgs
ConnectionLostEventArgs(WebDriverBiDiConnectionException)
Initializes a new instance of the ConnectionLostEventArgs class.
public ConnectionLostEventArgs(WebDriverBiDiConnectionException exception)
Parameters
exceptionWebDriverBiDiConnectionExceptionThe exception describing the loss, of the kind commands in flight failed with.
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
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
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(ConnectionLostEventArgs?)
public virtual bool Equals(ConnectionLostEventArgs? other)
Parameters
otherConnectionLostEventArgs
Returns
Equals(WebDriverBiDiEventArgs?)
public override sealed bool Equals(WebDriverBiDiEventArgs? other)
Parameters
otherWebDriverBiDiEventArgs
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ConnectionLostEventArgs?, ConnectionLostEventArgs?)
public static bool operator ==(ConnectionLostEventArgs? left, ConnectionLostEventArgs? right)
Parameters
leftConnectionLostEventArgsrightConnectionLostEventArgs
Returns
operator !=(ConnectionLostEventArgs?, ConnectionLostEventArgs?)
public static bool operator !=(ConnectionLostEventArgs? left, ConnectionLostEventArgs? right)
Parameters
leftConnectionLostEventArgsrightConnectionLostEventArgs