Class ProxySessionStatus
- Namespace
- VpnHood.Core.Proxies.Management.Abstractions
- Assembly
- VpnHood.Core.Proxies.Management.Abstractions.dll
Live tally of proxy connect attempts during the current VPN session. Unlike ProxyEndPointStatus it is not tied to a single endpoint, so it carries no rating fields (Penalty, QueuePosition, Quality).
public class ProxySessionStatus
- Inheritance
-
ProxySessionStatus
- Inherited Members
Properties
ErrorMessage
Gets or sets the last failure's message, or null after a success.
public string? ErrorMessage { get; set; }
Property Value
FailedCount
Gets or sets the number of connections that failed.
public int FailedCount { get; set; }
Property Value
HasUsed
Gets a value indicating whether any connection has been counted.
[JsonIgnore]
public bool HasUsed { get; }
Property Value
IsLastUsedFailed
Gets a value indicating whether the last connection failed.
[JsonIgnore]
public bool IsLastUsedFailed { get; }
Property Value
IsLastUsedSucceeded
Gets a value indicating whether the last connection succeeded.
[JsonIgnore]
public bool IsLastUsedSucceeded { get; }
Property Value
LastFailed
Gets or sets when a connection last failed, in UTC, or null.
public DateTime? LastFailed { get; set; }
Property Value
LastSucceeded
Gets or sets when a connection last succeeded, in UTC, or null.
public DateTime? LastSucceeded { get; set; }
Property Value
LastUsed
Gets LastSucceeded when it is later than LastFailed, and otherwise LastFailed, which is null while no connection has failed, whatever succeeded.
[JsonIgnore]
public DateTime? LastUsed { get; }
Property Value
Latency
Gets or sets how long the last connection took, or null when it failed.
public TimeSpan? Latency { get; set; }
Property Value
SucceededCount
Gets or sets the number of connections that succeeded.
public int SucceededCount { get; set; }