Class VpnAppServiceTask
- Namespace
- VpnHood.Core.Client.VpnServices.Host.WindowsVpnPlugin
- Assembly
- VpnHood.Core.Client.VpnServices.Host.WindowsVpnPlugin.dll
Represents what Windows activates in the VPN host when the app opens the package's app service, its control channel to the VPN service.
public sealed class VpnAppServiceTask : IBackgroundTask
- Inheritance
-
VpnAppServiceTask
- Implements
- Inherited Members
Remarks
A run lasts as long as its connection, and keeps the host running meanwhile, which Windows freezes between VPN events otherwise.
Methods
Run(IBackgroundTaskInstance)
Performs the work of a background task. The system calls this method when the associated background task has been triggered.
public void Run(IBackgroundTaskInstance taskInstance)
Parameters
taskInstanceIBackgroundTaskInstanceAn interface to an instance of the background task. The system creates this instance when the task has been triggered to run.
Remarks
It serves the app's connection in the background until it closes or Windows ends it, and holds the run open meanwhile; a failure is logged.