Table of Contents

Class VpnEngineInfo

Namespace
VpnHood.Core.Client.VpnServices.Abstractions
Assembly
VpnHood.Core.Client.VpnServices.Abstractions.dll

Represents what a VPN engine says of itself: the contract versions it speaks and the optional features it has.

public class VpnEngineInfo
Inheritance
VpnEngineInfo
Inherited Members

Remarks

The head that bundles an engine declares it (AppOptions.VpnEngineInfo), so the app offers only what the engine does before it ever runs, and the engine reports the same in its status (VpnEngineInfo).

Properties

Features

Gets the optional features the engine has.

public required VpnEngineFeatures Features { get; init; }

Property Value

VpnEngineFeatures

MaxContractVersion

Gets the newest contract version the engine speaks.

public required int MaxContractVersion { get; init; }

Property Value

int

MinContractVersion

Gets the oldest contract version the engine speaks (VpnServiceContract).

public required int MinContractVersion { get; init; }

Property Value

int

Name

Gets the engine's name.

public required string Name { get; init; }

Property Value

string

Version

Gets the engine's version, as text.

public required string Version { get; init; }

Property Value

string

VpnHoodEngine

Gets this library's own engine: VpnHood, at this assembly's version, with every feature and the contract versions this library speaks.

public static VpnEngineInfo VpnHoodEngine { get; }

Property Value

VpnEngineInfo