Ejemplo n.º 1
0
        public void PostInit()
        {
            if (ResourceType != ResourceType.Server)
            {
                return;
            }

            SecurityConfiguration.Validate(this);
        }
Ejemplo n.º 2
0
        public void PostInit()
        {
            CheckDirectoryPermissions();

            if (ResourceType != ResourceType.Server)
            {
                return;
            }

            SecurityConfiguration.Validate(this);
        }
Ejemplo n.º 3
0
        public void PostInit()
        {
            if (ResourceType != ResourceType.Server)
            {
                return;
            }

            try
            {
                SecurityConfiguration.Validate(this);
            }
            catch (Exception e)
            {
                if (_logger.IsOperationsEnabled)
                {
                    _logger.OperationsWithWait("Invalid security configuration. Stopping RavenDB server startup", e)
                    .Wait(UnhandledExceptions.TimeToWaitForLog);     // using async version to wait and ensure that we'll wait for the log to be written to disk since we're gonna break the service startup
                }
                throw;
            }
        }