hiramwu

Results 1 issues of hiramwu

private static void StopService(HostConfiguration config, ServiceController sc) { if (!(sc.Status == ServiceControllerStatus.Stopped | sc.Status == ServiceControllerStatus.StopPending)) { sc.Stop(); sc.WaitForStatus(ServiceControllerStatus.Stopped, TimeSpan.FromMilliseconds(1000)); Console.WriteLine($@"Successfully stopped service ""{config.Name}"" (""{config.Description}"")"); config.OnServiceStop?.Invoke(config.Service); } else { Console.WriteLine($@"Service...