Exemple #1
0
 private void DisableService(string serviceName)
 {
     if (String.IsNullOrWhiteSpace(serviceName))
     {
         throw new ArgumentNullException(nameof(serviceName));
     }
     using (var service = new ServiceEditor(serviceName))
     {
         service.DisableService();
         Logger.LogInfo(string.Format("Service disabled: {0}", serviceName));
     }
 }
 public void DisableService(string serviceName)
 {
     if (string.IsNullOrWhiteSpace(serviceName))
     {
         throw new ArgumentNullException(nameof(serviceName));
     }
     using (var service = new ServiceEditor(serviceName))
     {
         service.DisableService();
     }
     AddWu10ToFileName(serviceName);
 }