Table of Contents

Class VpnBackgroundTask

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 profile connects: one finite run per VPN event.

public sealed class VpnBackgroundTask : IBackgroundTask
Inheritance
VpnBackgroundTask
Implements
Inherited Members

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

taskInstance IBackgroundTaskInstance

An interface to an instance of the background task. The system creates this instance when the task has been triggered to run.

Remarks

It hands the VPN event to the plug-in, and, after a disconnect, waits up to 15 seconds for the session's close before the run ends; a failure is logged.