Table of Contents

Class IdleUpdateInstaller

Namespace
VpnHood.AppUi.Hosting.Desktop.Daemon.Updaters
Assembly
VpnHood.AppUi.Hosting.Desktop.Daemon.dll

Provides the service's half of the automatic update's wait for an idle VPN: once a session ended and the app stayed idle for the idle wait, the update the updater downloaded meanwhile goes to the installer, one try per session's end.

public sealed class IdleUpdateInstaller : IDisposable
Inheritance
IdleUpdateInstaller
Implements
Inherited Members

Remarks

The wait passes over a connect that disconnects first, as a server switch; a connect within it puts the install off to the next end. Nothing installs at the app's start. It is disposed before the app, whose disconnect at a stop must install nothing.

Constructors

IdleUpdateInstaller(VpnHoodApp, DesktopAppUpdaterProvider, TimeSpan)

Initializes a new instance of the IdleUpdateInstaller class, which follows the app's state.

public IdleUpdateInstaller(VpnHoodApp app, DesktopAppUpdaterProvider updater, TimeSpan idleWait)

Parameters

app VpnHoodApp

The app.

updater DesktopAppUpdaterProvider

The updater.

idleWait TimeSpan

How long the app must stay idle after a session's end.

Fields

DefaultIdleWait

The default idle wait, 10 seconds: shorter than always-on's default first pause.

public static readonly TimeSpan DefaultIdleWait

Field Value

TimeSpan

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Remarks

It stops following the app's state.