Esempio n. 1
0
 public void DisableServices()
 {
     // Stop the service hosts.
     ServiceHostControl.CloseServiceHosts();
 }
Esempio n. 2
0
 public void EnableServices()
 {
     // Start the service hosts.
     ServiceHostControl.OpenServiceHosts(true);
 }