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