2018-01-17 08:26:44 +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-01-17 14:08:39 +01:00
|
|
|
|
namespace SafeExamBrowser.Contracts.Configuration
|
2018-01-17 08:26:44 +01:00
|
|
|
|
{
|
2018-01-17 14:08:39 +01:00
|
|
|
|
public interface IRuntimeInfo
|
2018-01-17 08:26:44 +01:00
|
|
|
|
{
|
2018-01-17 14:08:39 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The path of the application data folder.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string AppDataFolder { get; }
|
|
|
|
|
|
2018-01-17 08:26:44 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The point in time when the application was started.
|
|
|
|
|
/// </summary>
|
|
|
|
|
DateTime ApplicationStartTime { get; }
|
|
|
|
|
|
2018-01-17 14:08:39 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The path where the browser cache is to be stored.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string BrowserCachePath { get; }
|
|
|
|
|
|
2018-01-17 08:26:44 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The file path under which the log of the browser component is to be stored.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string BrowserLogFile { get; }
|
|
|
|
|
|
2018-02-06 15:12:11 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The communication address of the client component.
|
|
|
|
|
///
|
|
|
|
|
/// TODO: Will need to be updated for each new client instance!
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
string ClientAddress { get; }
|
|
|
|
|
|
2018-02-14 15:26:05 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The executable path of the client compontent.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string ClientExecutablePath { get; }
|
|
|
|
|
|
2018-02-06 15:12:11 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The unique identifier for the currently running client instance.
|
|
|
|
|
///
|
2018-02-14 15:26:05 +01:00
|
|
|
|
/// TODO: Will need to be updated for each new client instance! -> Remove if unused!
|
2018-02-06 15:12:11 +01:00
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
|
|
|
|
Guid ClientId { get; }
|
|
|
|
|
|
2018-01-17 08:26:44 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The file path under which the log of the client component is to be stored.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string ClientLogFile { get; }
|
|
|
|
|
|
2018-01-18 15:14:05 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The default file name for application settings.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string DefaultSettingsFileName { get; }
|
|
|
|
|
|
2018-01-17 14:08:39 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The copyright information for the application (i.e. the executing assembly).
|
|
|
|
|
/// </summary>
|
|
|
|
|
string ProgramCopyright { get; }
|
|
|
|
|
|
2018-01-18 15:14:05 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The path of the program data folder.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string ProgramDataFolder { get; }
|
|
|
|
|
|
2018-01-17 14:08:39 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The program title of the application (i.e. the executing assembly).
|
|
|
|
|
/// </summary>
|
|
|
|
|
string ProgramTitle { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The program version of the application (i.e. the executing assembly).
|
|
|
|
|
/// </summary>
|
|
|
|
|
string ProgramVersion { get; }
|
|
|
|
|
|
2018-02-06 15:12:11 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The communication address of the runtime component.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string RuntimeAddress { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The unique identifier for the currently running runtime instance.
|
2018-02-14 15:26:05 +01:00
|
|
|
|
///
|
|
|
|
|
/// TODO: Remove if unused!
|
|
|
|
|
///
|
2018-02-06 15:12:11 +01:00
|
|
|
|
/// </summary>
|
|
|
|
|
Guid RuntimeId { get; }
|
|
|
|
|
|
2018-01-17 08:26:44 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The file path under which the log of the runtime component is to be stored.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string RuntimeLogFile { get; }
|
2018-02-06 15:12:11 +01:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The communication address of the service component.
|
|
|
|
|
/// </summary>
|
|
|
|
|
string ServiceAddress { get; }
|
2018-01-17 08:26:44 +01:00
|
|
|
|
}
|
|
|
|
|
}
|