Class VpnServiceOptions
- Namespace
- VpnHood.Core.Client.VpnServices.Abstractions
- Assembly
- VpnHood.Core.Client.VpnServices.Abstractions.dll
Represents what the app hands to the VPN service, in its config folder as VpnConfigFileName: the client's options, the proxies' options, and the words the service shows itself.
public class VpnServiceOptions
- Inheritance
-
VpnServiceOptions
- Inherited Members
Remarks
The client only ever receives the nested ClientOptions, so it stays blind to paths and stores; the service turns the rest into services itself.
Properties
ClientOptions
Gets or sets the client's options, the only part the client receives.
public required ClientOptions ClientOptions { get; set; }
Property Value
ContractVersion
Gets the contract version these options are written in (VpnServiceContract), which the engine refuses when it does not speak it. Options from before versions existed have none, and are the first. The default is 1.
public int ContractVersion { get; init; }
Property Value
Localization
Gets or sets the words the service shows itself, as its notification's buttons, in the app's language.
public VpnServiceLocalization Localization { get; set; }
Property Value
ProxyOptions
Gets or sets the options of the proxies to connect through, or null for none.
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public ProxyOptions? ProxyOptions { get; set; }