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

43 lines
1.5 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.Communication.Data;
namespace SafeExamBrowser.Contracts.Communication.Proxies
{
/// <summary>
/// Defines the functionality for a proxy to the communication host of the client application component.
/// </summary>
public interface IClientProxy : ICommunicationProxy
{
/// <summary>
/// Informs the client that the reconfiguration request for the specified file was denied.
/// </summary>
void InformReconfigurationDenied(string filePath);
/// <summary>
/// Instructs the client to initiate its shutdown procedure.
/// </summary>
/// <exception cref="System.ServiceModel.*">If the communication failed.</exception>
void InitiateShutdown();
/// <summary>
/// Instructs the client to submit its authentication data.
/// </summary>
/// <exception cref="System.ServiceModel.*">If the communication failed.</exception>
2018-02-15 15:42:54 +01:00
AuthenticationResponse RequestAuthentication();
/// <summary>
/// Requests the client to render a password dialog and subsequently return the interaction result as separate message.
/// </summary>
/// <exception cref="System.ServiceModel.*">If the communication failed.</exception>
void RequestPassword(PasswordRequestPurpose purpose, Guid requestId);
}
}