Class ConnectOptions
- Namespace
- VpnHood.AppLib.App
- Assembly
- VpnHood.AppLib.App.dll
Provides the options of a connect (Connect(IUiContext?, ConnectOptions?, CancellationToken)).
public class ConnectOptions
- Inheritance
-
ConnectOptions
- Inherited Members
Properties
Diagnose
Gets a value indicating whether the connect diagnoses: it checks the server's endpoints and the network before it starts and the tunnel after, and may take three times as long (ConnectTimeout).
public bool Diagnose { get; init; }
Property Value
IsRetried
Gets a value indicating whether the connect's caller tries again if it fails, as the Windows Store edition's does after a wake: its failure is not shown, as the next try may connect, and does not set off the automatic check of the network (AutoDiagnose).
public bool IsRetried { get; init; }
Property Value
PlanId
Gets the plan to connect on, which the server may grant or refuse. The default is Normal.
public ConnectPlanId PlanId { get; init; }
Property Value
ServerLocation
Gets the server location to connect to, or null for the profile's selected one. The connect selects it on the profile and the profile in the settings.
public string? ServerLocation { get; init; }
Property Value
VpnProfileId
Gets the ID of the VPN profile to connect with, or null for the one the settings select (VpnProfileId).
public Guid? VpnProfileId { get; init; }
Property Value
- Guid?