/* * Copyright (c) 2019 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.Events; namespace SafeExamBrowser.Contracts.Communication.Hosts { /// /// Defines the functionality of the communication host for the client application component. /// public interface IClientHost : ICommunicationHost { /// /// Indicates whether the runtime has established a connection to this host. /// bool IsConnected { get; } /// /// The startup token used for initial authentication. /// Guid StartupToken { set; } /// /// Event fired when the runtime requests a message box input from the user. /// event CommunicationEventHandler MessageBoxRequested; /// /// Event fired when the runtime requests a password input from the user. /// event CommunicationEventHandler PasswordRequested; /// /// Event fired when the runtime denied a reconfiguration request. /// event CommunicationEventHandler ReconfigurationDenied; /// /// Event fired when the runtime disconnected from the client. /// event CommunicationEventHandler RuntimeDisconnected; /// /// Event fired when the runtime commands the client to shutdown. /// event CommunicationEventHandler Shutdown; } }