seb-win-refactoring/SafeExamBrowser.Contracts/Communication/Proxies/IRuntimeProxy.cs

51 lines
1.8 KiB
C#
Raw Normal View History

/*
* 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;
using SafeExamBrowser.Contracts.Configuration;
namespace SafeExamBrowser.Contracts.Communication.Proxies
{
/// <summary>
/// Defines the functionality for a proxy to the communication host of the runtime application component.
/// </summary>
public interface IRuntimeProxy : ICommunicationProxy
{
/// <summary>
/// Retrieves the application configuration from the runtime.
/// </summary>
/// <exception cref="System.ServiceModel.*">If the communication failed.</exception>
2018-02-15 15:42:54 +01:00
ClientConfiguration GetConfiguration();
/// <summary>
/// Informs the runtime that the client is ready.
/// </summary>
/// <exception cref="System.ServiceModel.*">If the communication failed.</exception>
void InformClientReady();
/// <summary>
/// Requests the runtime to shut down the application.
/// </summary>
/// <exception cref="System.ServiceModel.*">If the communication failed.</exception>
void RequestShutdown();
/// <summary>
/// Requests the runtime to reconfigure the application with the specified configuration.
/// </summary>
/// <exception cref="System.ServiceModel.*">If the communication failed.</exception>
void RequestReconfiguration(string filePath);
/// <summary>
/// Submits the result of a password input previously requested by the runtime. If the procedure was aborted by the user,
/// the password parameter will be <c>null</c>!
/// </summary>
/// /// <exception cref="System.ServiceModel.*">If the communication failed.</exception>
void SubmitPassword(Guid requestId, bool success, string password = null);
}
}