/* * 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 SafeExamBrowser.Contracts.Configuration; namespace SafeExamBrowser.Contracts.Communication.Proxies { /// /// Defines the functionality for a proxy to the communication host of the runtime application component. /// public interface IRuntimeProxy : ICommunicationProxy { /// /// Retrieves the application configuration from the runtime. /// /// If the communication failed. ClientConfiguration GetConfiguration(); /// /// Informs the runtime that the client is ready. /// /// If the communication failed. void InformClientReady(); /// /// Requests the runtime to shut down the application. /// /// If the communication failed. void RequestShutdown(); /// /// Requests the runtime to reconfigure the application with the configuration from the given location. Returns true if /// the runtime accepted the request, otherwise false. /// /// If the communication failed. bool RequestReconfiguration(string url); } }