Table of Contents

Class WindowsVpnPluginHost

Namespace
VpnHood.Core.Client.VpnServices.Host.WindowsVpnPlugin
Assembly
VpnHood.Core.Client.VpnServices.Host.WindowsVpnPlugin.dll

Provides the VPN host's whole Main, which a head's VPN host executable calls on its MTA thread.

public static class WindowsVpnPluginHost
Inheritance
WindowsVpnPluginHost
Inherited Members

Remarks

Windows starts the executable as the package's background-task server; a plain console host or a direct COM registration does not activate the VPN background task, CoreApplication.RunWithActivationFactories does.

Methods

Run(string[])

Runs the VPN host: the server of the package's VPN task and app service, with its own log, vpn-host.log; or, where a person launched its entry in Start, a view that opens the app for Quick Launch.

public static void Run(string[] args)

Parameters

args string[]

The command line Windows gives, with the server's name where it starts the server.

Exceptions

InvalidOperationException

The process has no path.

Exception

The server failed; the error is logged first.