/*
* Copyright (c) 2024 ETH Zürich, IT Services
*
* 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.Threading;
using SafeExamBrowser.Configuration.Contracts;
using SafeExamBrowser.Lockdown.Contracts;
namespace SafeExamBrowser.Service
{
///
/// Holds all configuration and runtime data required for the session handling.
///
internal class SessionContext
{
///
/// The mechanism trying to restore all changes after an application or system failure.
///
internal IAutoRestoreMechanism AutoRestoreMechanism { get; set; }
///
/// The configuration of the currently active session.
///
internal ServiceConfiguration Configuration { get; set; }
///
/// Indicates whether a session is currently running.
///
internal bool IsRunning { get; set; }
///
/// The global inter-process event used for status synchronization with the runtime component.
///
internal EventWaitHandle ServiceEvent { get; set; }
}
}