Table of Contents

Class AppUtils

Namespace
VpnHood.AppLib.App.Utils
Assembly
VpnHood.AppLib.App.dll

Provides helpers for a head's options.

public static class AppUtils
Inheritance
AppUtils
Inherited Members

Methods

GetAdapterName(string, bool)

Returns the VPN adapter's name, which only a desktop shows: the package title, with _dbg in a Debug build, so a Debug build never takes over a release's adapter.

public static string GetAdapterName(string packageTitle, bool isDebugMode)

Parameters

packageTitle string

The app's name without spaces (PackageTitle).

isDebugMode bool

true for a Debug build.

Returns

string

The adapter's name.

GetAdapterName(AppOptions)

Returns the VPN adapter's name the app takes from a head's options: AdapterName, or else the name the package title gives.

public static string GetAdapterName(AppOptions options)

Parameters

options AppOptions

The head's options.

Returns

string

The adapter's name.