public void PostInit() { if (ResourceType != ResourceType.Server) { return; } SecurityConfiguration.Validate(this); }
public void PostInit() { CheckDirectoryPermissions(); if (ResourceType != ResourceType.Server) { return; } SecurityConfiguration.Validate(this); }
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; } }