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