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
originalBaseNetworkEventArgs
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
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
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Intercepts
Gets the list of network intercepts for this request.
[JsonIgnore]
public IList<string>? Intercepts { get; }
Property Value
IsBlocked
Gets a value indicating whether this request is blocked by a network intercept.
[JsonPropertyName("isBlocked")]
[JsonRequired]
[JsonInclude]
public bool IsBlocked { get; }
Property Value
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
RedirectCount
Gets the count of redirects for the request.
[JsonPropertyName("redirectCount")]
[JsonRequired]
[JsonInclude]
public ulong RedirectCount { get; }
Property Value
Request
Gets the request data of the request.
[JsonPropertyName("request")]
[JsonRequired]
[JsonInclude]
public RequestData Request { get; }
Property Value
Timestamp
Gets the timestamp of the network event in UTC.
[JsonIgnore]
public DateTime Timestamp { get; }
Property Value
UserContextId
Gets the ID of the user context associated with the request, if any.
[JsonPropertyName("userContext")]
[JsonInclude]
public string? UserContextId { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BaseNetworkEventArgs?)
public virtual bool Equals(BaseNetworkEventArgs? other)
Parameters
otherBaseNetworkEventArgs
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 ==(BaseNetworkEventArgs?, BaseNetworkEventArgs?)
public static bool operator ==(BaseNetworkEventArgs? left, BaseNetworkEventArgs? right)
Parameters
leftBaseNetworkEventArgsrightBaseNetworkEventArgs
Returns
operator !=(BaseNetworkEventArgs?, BaseNetworkEventArgs?)
public static bool operator !=(BaseNetworkEventArgs? left, BaseNetworkEventArgs? right)
Parameters
leftBaseNetworkEventArgsrightBaseNetworkEventArgs