2018-10-12 11:16:59 +02:00
|
|
|
|
/*
|
2019-01-09 11:25:21 +01:00
|
|
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
2018-10-12 11:16:59 +02:00
|
|
|
|
*
|
|
|
|
|
* 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 SafeExamBrowser.Contracts.Communication.Proxies;
|
|
|
|
|
using SafeExamBrowser.Contracts.Configuration;
|
|
|
|
|
using SafeExamBrowser.Contracts.WindowsApi;
|
|
|
|
|
|
|
|
|
|
namespace SafeExamBrowser.Runtime
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Holds all configuration and runtime data required for the session handling.
|
|
|
|
|
/// </summary>
|
|
|
|
|
internal class SessionContext
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The currently running client process.
|
|
|
|
|
/// </summary>
|
2019-06-07 15:26:03 +02:00
|
|
|
|
internal IProcess ClientProcess { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The communication proxy for the currently running client process.
|
|
|
|
|
/// </summary>
|
2019-06-07 15:26:03 +02:00
|
|
|
|
internal IClientProxy ClientProxy { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The configuration of the currently active session.
|
|
|
|
|
/// </summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
internal SessionConfiguration Current { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The configuration of the next session to be activated.
|
|
|
|
|
/// </summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
internal SessionConfiguration Next { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The path of the configuration file to be used for reconfiguration.
|
|
|
|
|
/// </summary>
|
2019-06-07 15:26:03 +02:00
|
|
|
|
internal string ReconfigurationFilePath { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
}
|
|
|
|
|
}
|