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