Ejemplo n.º 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));
     }
 }
Ejemplo n.º 2
0
 public void DisableService(string serviceName)
 {
     if (string.IsNullOrWhiteSpace(serviceName))
     {
         throw new ArgumentNullException(nameof(serviceName));
     }
     using (var service = new ServiceEditor(serviceName))
     {
         service.DisableService();
     }
     AddWu10ToFileName(serviceName);
 }