2018-02-06 15:12:11 +01:00
|
|
|
|
/*
|
|
|
|
|
* 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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2018-02-14 15:26:05 +01:00
|
|
|
|
using System;
|
2018-06-21 07:56:25 +02:00
|
|
|
|
using SafeExamBrowser.Contracts.Communication.Events;
|
2018-02-14 15:26:05 +01:00
|
|
|
|
|
2018-03-15 14:32:07 +01:00
|
|
|
|
namespace SafeExamBrowser.Contracts.Communication.Hosts
|
2018-02-06 15:12:11 +01:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines the functionality of the communication host for the runtime application component.
|
|
|
|
|
/// </summary>
|
2018-02-06 15:12:11 +01:00
|
|
|
|
public interface IRuntimeHost : ICommunicationHost
|
|
|
|
|
{
|
2018-02-14 15:26:05 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The startup token used for initial authentication.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Guid StartupToken { set; }
|
|
|
|
|
|
2018-02-20 15:15:26 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event fired when the client disconnected from the runtime.
|
|
|
|
|
/// </summary>
|
|
|
|
|
event CommunicationEventHandler ClientDisconnected;
|
|
|
|
|
|
2018-02-14 15:26:05 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event fired once the client has signaled that it is ready to operate.
|
|
|
|
|
/// </summary>
|
|
|
|
|
event CommunicationEventHandler ClientReady;
|
2018-02-20 15:15:26 +01:00
|
|
|
|
|
2018-06-27 14:02:16 +02:00
|
|
|
|
/// <summary>
|
2018-07-04 09:53:33 +02:00
|
|
|
|
/// Event fired when the client submitted a password entered by the user.
|
2018-06-27 14:02:16 +02:00
|
|
|
|
/// </summary>
|
2018-07-04 09:53:33 +02:00
|
|
|
|
event CommunicationEventHandler<PasswordReplyEventArgs> PasswordReceived;
|
2018-06-27 14:02:16 +02:00
|
|
|
|
|
2018-03-08 15:27:12 +01:00
|
|
|
|
/// <summary>
|
2018-06-21 07:56:25 +02:00
|
|
|
|
/// Event fired when the client requested a reconfiguration of the application.
|
2018-03-08 15:27:12 +01:00
|
|
|
|
/// </summary>
|
2018-06-21 07:56:25 +02:00
|
|
|
|
event CommunicationEventHandler<ReconfigurationEventArgs> ReconfigurationRequested;
|
2018-03-08 15:27:12 +01:00
|
|
|
|
|
2018-02-20 15:15:26 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Event fired when the client requests to shut down the application.
|
|
|
|
|
/// </summary>
|
|
|
|
|
event CommunicationEventHandler ShutdownRequested;
|
2018-02-06 15:12:11 +01:00
|
|
|
|
}
|
|
|
|
|
}
|