/* * Copyright (c) 2018 ETH Zürich, Educational Development and Technology (LET) * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System; namespace SafeExamBrowser.Contracts.Configuration { /// /// The repository which controls the loading and initializing of configuration data. /// public interface IConfigurationRepository { /// /// Initializes the global configuration information for the currently running application instance. /// AppConfig InitializeAppConfig(); /// /// Initializes all relevant configuration data for a new session. /// ISessionConfiguration InitializeSessionConfiguration(); /// /// Attempts to load settings from the specified resource, using the optional passwords. Returns a /// indicating the result of the operation. As long as the result is not , the declared /// will be null! /// LoadStatus TryLoadSettings(Uri resource, out Settings.Settings settings, string adminPassword = null, string settingsPassword = null); /// /// Loads the default settings. /// Settings.Settings LoadDefaultSettings(); } }