Table of Contents

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

string

FailedCount

Gets or sets the number of connections that failed.

public int FailedCount { get; set; }

Property Value

int

HasUsed

Gets a value indicating whether any connection has been counted.

[JsonIgnore]
public bool HasUsed { get; }

Property Value

bool

IsLastUsedFailed

Gets a value indicating whether the last connection failed.

[JsonIgnore]
public bool IsLastUsedFailed { get; }

Property Value

bool

IsLastUsedSucceeded

Gets a value indicating whether the last connection succeeded.

[JsonIgnore]
public bool IsLastUsedSucceeded { get; }

Property Value

bool

LastFailed

Gets or sets when a connection last failed, in UTC, or null.

public DateTime? LastFailed { get; set; }

Property Value

DateTime?

LastSucceeded

Gets or sets when a connection last succeeded, in UTC, or null.

public DateTime? LastSucceeded { get; set; }

Property Value

DateTime?

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

DateTime?

Latency

Gets or sets how long the last connection took, or null when it failed.

public TimeSpan? Latency { get; set; }

Property Value

TimeSpan?

SucceededCount

Gets or sets the number of connections that succeeded.

public int SucceededCount { get; set; }

Property Value

int