Delegate DaemonRun
- 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
stopTokenCancellationTokenThe token canceled when the manager stops the service.
quickCloseTokenCancellationTokenThe token canceled when the time the stop leaves the app's graceful close runs out, which then gives way to its quick one.