2018-01-24 12:34:32 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
using System;
|
2018-02-12 12:21:55 +01:00
|
|
|
|
using SafeExamBrowser.Contracts.Configuration;
|
2018-01-24 12:34:32 +01:00
|
|
|
|
|
|
|
|
|
namespace SafeExamBrowser.Contracts.Communication
|
|
|
|
|
{
|
|
|
|
|
public interface IRuntimeProxy
|
|
|
|
|
{
|
2018-02-12 12:21:55 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Tries to establish a connection with the runtime host, utilizing the specified authentication token.
|
|
|
|
|
/// </summary>
|
2018-01-24 12:34:32 +01:00
|
|
|
|
bool Connect(Guid token);
|
2018-02-12 12:21:55 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Disconnects from the runtime host.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void Disconnect();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Retrieves the application configuration from the runtime host.
|
|
|
|
|
/// </summary>
|
|
|
|
|
IClientConfiguration GetConfiguration();
|
2018-01-24 12:34:32 +01:00
|
|
|
|
}
|
|
|
|
|
}
|