static void TryRestart(ServiceController service, ServiceState serviceState) { try { service.Start(); } catch { // ignore - will try again soon and alerts will eventually be raised. } serviceState.RestartAttempted(); }
static void TryRestart(ServiceController service, ServiceState serviceState) { try { service.Start(); } catch { // ignore - will try again soon and alerts will eventually be raised. } serviceState.RestartAttempted(); }