2017-07-10 15:47:12 +02:00
|
|
|
|
/*
|
2022-01-21 16:33:52 +01:00
|
|
|
|
* Copyright (c) 2022 ETH Zürich, Educational Development and Technology (LET)
|
2017-07-10 15:47:12 +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-08-30 09:55:26 +02:00
|
|
|
|
namespace SafeExamBrowser.Logging.Contracts
|
2017-07-10 15:47:12 +02:00
|
|
|
|
{
|
2018-03-06 11:38:12 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Defines information about a thread, to be associated with an <see cref="ILogMessage"/>.
|
|
|
|
|
/// </summary>
|
2017-07-10 15:47:12 +02:00
|
|
|
|
public interface IThreadInfo : ICloneable
|
|
|
|
|
{
|
2017-07-12 15:36:30 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The id of the thread.
|
|
|
|
|
/// </summary>
|
2017-07-10 15:47:12 +02:00
|
|
|
|
int Id { get; }
|
2017-07-12 15:36:30 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The thread's name.
|
|
|
|
|
/// </summary>
|
2017-07-10 15:47:12 +02:00
|
|
|
|
string Name { get; }
|
2017-07-12 15:36:30 +02:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A flag indicating whether the thread has a name.
|
|
|
|
|
/// </summary>
|
2017-07-10 15:47:12 +02:00
|
|
|
|
bool HasName { get; }
|
|
|
|
|
}
|
|
|
|
|
}
|