public override Task OnConnectionDownAsync(Circuit circuit, CancellationToken cancellationToken) { //circuits.Remove(circuit); Task.Factory.StartNew(new Action(() => AppLifetime?.StopApplication())); return(Task.CompletedTask); }
public void Post(Restart request) { if (!ZeroUsersOrIsAdmin()) { return; } AppLifetime?.StopApplication(); }
public void StopApplication() { AppLifetime.StopApplication(); }