Table of Contents

Class BaseNetworkEventArgs

Namespace
WebDriverBiDi.Network
Assembly
WebDriverBiDi.dll

The base properties of all events for network traffic.

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

Constructors

BaseNetworkEventArgs()

Initializes a new instance of the BaseNetworkEventArgs class.

[JsonConstructor]
public BaseNetworkEventArgs()

BaseNetworkEventArgs(BaseNetworkEventArgs)

protected BaseNetworkEventArgs(BaseNetworkEventArgs original)

Parameters

original BaseNetworkEventArgs

Properties

BrowsingContextId

Gets the ID of the browsing context initiating the request, or null when the request is not associated with a browsing context (for example, a request made by a service worker).

[JsonPropertyName("context")]
[JsonRequired]
[JsonInclude]
public string? BrowsingContextId { get; }

Property Value

string

EpochTimestamp

Gets the timestamp as the total number of milliseconds elapsed since the start of the Unix epoch (1 January 1970 12:00AM UTC).

[JsonPropertyName("timestamp")]
[JsonRequired]
[JsonInclude]
public ulong EpochTimestamp { get; }

Property Value

ulong

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Intercepts

Gets the list of network intercepts for this request.

[JsonIgnore]
public IList<string>? Intercepts { get; }

Property Value

IList<string>

IsBlocked

Gets a value indicating whether this request is blocked by a network intercept.

[JsonPropertyName("isBlocked")]
[JsonRequired]
[JsonInclude]
public bool IsBlocked { get; }

Property Value

bool

NavigationId

Gets the ID of the navigation initiating the request, or null when the request is not associated with a navigation.

[JsonPropertyName("navigation")]
[JsonRequired]
[JsonInclude]
public string? NavigationId { get; }

Property Value

string

RedirectCount

Gets the count of redirects for the request.

[JsonPropertyName("redirectCount")]
[JsonRequired]
[JsonInclude]
public ulong RedirectCount { get; }

Property Value

ulong

Request

Gets the request data of the request.

[JsonPropertyName("request")]
[JsonRequired]
[JsonInclude]
public RequestData Request { get; }

Property Value

RequestData

Timestamp

Gets the timestamp of the network event in UTC.

[JsonIgnore]
public DateTime Timestamp { get; }

Property Value

DateTime

UserContextId

Gets the ID of the user context associated with the request, if any.

[JsonPropertyName("userContext")]
[JsonInclude]
public string? UserContextId { get; }

Property Value

string

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(BaseNetworkEventArgs?)

public virtual bool Equals(BaseNetworkEventArgs? other)

Parameters

other BaseNetworkEventArgs

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 ==(BaseNetworkEventArgs?, BaseNetworkEventArgs?)

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

Parameters

left BaseNetworkEventArgs
right BaseNetworkEventArgs

Returns

bool

operator !=(BaseNetworkEventArgs?, BaseNetworkEventArgs?)

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

Parameters

left BaseNetworkEventArgs
right BaseNetworkEventArgs

Returns

bool