/// <summary> /// Stops the service from executing. /// </summary> public void Stop() { log.Debug("Stop called"); Simias.Server.Catalog.StopCatalogService(); Simias.IdentitySync.Service.Stop(); if (syncProvider != null) { IdentitySync.Service.Unregister(syncProvider); syncProvider = null; } if (authProvider != null) { DomainProvider.Unregister(authProvider); authProvider = null; } if (userProvider != null) { User.UnregisterProvider(userProvider); userProvider = null; } }
/// <summary> /// Starts the thread service. /// </summary> public void Start() { log.Debug("Start called"); //Thread.Sleep( 30 * 1000 ); // Instantiate the server domain // The domain will be created the first time the // server is run EnterpriseDomain enterpriseDomain = new EnterpriseDomain(true); if (enterpriseDomain != null) { new Simias.Host.HostProvider(enterpriseDomain.GetServerDomain(false)); //new Simias.Host.HostProvider( new EnterpriseDomain( false ).GetServerDomain( false ) ); if (Simias.Service.Manager.LdapServiceEnabled == false) { // Valid enterprise domain - start the external // identity sync service Simias.IdentitySync.Service.Start(); } if (userProvider == null) { LoadIdentityProvider(); } if (Simias.Service.Manager.LdapServiceEnabled == false) { // Register with the domain provider service. if (authProvider == null) { authProvider = new Simias.Server.Authentication(); DomainProvider.RegisterProvider(this.authProvider); } } Simias.Server.Catalog.StartCatalogService(); ExtractMemberPoliciesOnMaster(); CheckStoreAndLoadRA(); CheckServerForChageMasterError(); } }