/* * 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 saving 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(); /// /// Loads the default settings. /// Settings.Settings LoadDefaultSettings(); /// /// Registers the specified as option to parse data from a configuration resource. /// void Register(IDataFormat dataFormat); /// /// Registers the specified as option to load data from a configuration resource. /// void Register(IResourceLoader resourceLoader); /// /// Attempts to load settings from the specified resource. As long as the result is not , /// the referenced settings may be null or in an undefinable state! /// LoadStatus TryLoadSettings(Uri resource, PasswordInfo passwordInfo, out Settings.Settings settings); } }