Files
UnrealEngineUWP/Engine/Source/Programs/Horde/HordeServer/Models/Session.cs
Ben Marsh dadca6221a Horde: Use version numbers from the agent executable for versioning software.
[CL 16561486 by Ben Marsh in ue5-main branch]
2021-06-04 15:03:28 -04:00

50 lines
1.0 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using HordeServer.Api;
using HordeServer.Utilities;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace HordeServer.Models
{
/// <summary>
/// Information about an agent session.
/// </summary>
public interface ISession
{
/// <summary>
/// Unique id for this session
/// </summary>
public ObjectId Id { get; }
/// <summary>
/// The agent id
/// </summary>
public AgentId AgentId { get; }
/// <summary>
/// Start time for this session
/// </summary>
public DateTime StartTime { get; }
/// <summary>
/// Finishing time for this session
/// </summary>
public DateTime? FinishTime { get; }
/// <summary>
/// Capabilities of this agent at the time the session started
/// </summary>
public AgentCapabilities? Capabilities { get; }
/// <summary>
/// Version of the agent software
/// </summary>
public string? Version { get; }
}
}