2018-10-12 11:16:59 +02:00
|
|
|
|
/*
|
2024-03-05 18:37:42 +01:00
|
|
|
|
* Copyright (c) 2024 ETH Zürich, IT Services
|
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 System;
|
2019-10-01 11:30:53 +02:00
|
|
|
|
using SafeExamBrowser.Settings;
|
2018-10-12 11:16:59 +02:00
|
|
|
|
|
2019-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Configuration.Contracts
|
2018-10-12 11:16:59 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
/// The configuration for a session of the service application component.
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// </summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
[Serializable]
|
|
|
|
|
public class ServiceConfiguration
|
2018-10-12 11:16:59 +02:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
/// The global application configuration.
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// </summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
public AppConfig AppConfig { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
/// The unique identifier for the current session.
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// </summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
public Guid SessionId { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-06-11 09:53:33 +02:00
|
|
|
|
/// The application settings to be used by the service.
|
2018-10-12 11:16:59 +02:00
|
|
|
|
/// </summary>
|
2019-10-01 11:30:53 +02:00
|
|
|
|
public AppSettings Settings { get; set; }
|
2019-06-21 15:05:31 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The user name of the currently logged in user.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string UserName { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The security identifier of the currently logged in user.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string UserSid { get; set; }
|
2018-10-12 11:16:59 +02:00
|
|
|
|
}
|
|
|
|
|
}
|