Daemon Services
Lifecycle
Implementation
Daemon Scaffolding
public class HelloDaemon : IDaemonService
{
public bool IsRunning => false;
public string ServiceName => "HelloWorld Daemon";
public event EventHandler Starting;
public event EventHandler Started;
public event EventHandler Stopping;
public event EventHandler Stopped;
public bool Start()
{
// Start the daemon
}
public bool Stop()
{
// Stop the daemon
}
}Events
Current Status
Start/Stop Methods
Last updated
Was this helpful?