public void DeInit() { EventController.UnRegisterEventHandler(this); EmbeddedHandlerFactory.DeregisterHandler(ConfigurationWebHandler.BASE_PATH + ConfigurationWebHandler.CONFIGURATION_PATH); EmbeddedHandlerFactory.DeregisterHandler(ConfigurationWebHandler.BASE_PATH + ConfigurationWebHandler.DIALPLAN_PATH); EmbeddedHandlerFactory.DeregisterHandler(ConfigurationWebHandler.BASE_PATH + ConfigurationWebHandler.DIRECTORY_PATH); if (_previousType != null) { CoreGenerator.ChangeDeploymentMethod(_previousType); } }
public bool Update() { if (!User.Current.HasRight(USER_RIGHT)) { throw new UnauthorizedAccessException(); } if (this.IsCurrent) { if (CoreGenerator.CurrentDeploymentMethod.FullName != this.id) { CoreGenerator.ChangeDeploymentMethod(_dep.GetType()); return(true); } } return(false); }