Table of Contents

Delegate DaemonRun

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

Represents the service's run, as the platform's service manager hosts it.

public delegate Task<int> DaemonRun(CancellationToken stopToken, CancellationToken quickCloseToken)

Parameters

stopToken CancellationToken

The token canceled when the manager stops the service.

quickCloseToken CancellationToken

The token canceled when the time the stop leaves the app's graceful close runs out, which then gives way to its quick one.

Returns

Task<int>

A task whose result is the process's exit code.