internal static void UpdateConfiguration() { if (!Initialized) { return; } if (NeedsConfiguration && ConfigFilePath == null) { var(task, measure) = RequireApiKey ? ("require API keys", "read keys and assign access rights") : ("only allow some CORS origins", "know what origins to deny"); throw new MissingConfigurationFile($"RESTar was set up to {task}, but needs to read settings from a configuration file in " + $"order to {measure}. Provide a configuration file path in the call to RESTarConfig.Init. " + "See the specification for more info."); } if (NeedsConfiguration) { ReadConfig(); } AccessRights.ReloadRoot(); }