Files
UnrealEngineUWP/Engine/Source/Programs/Horde/Horde.Build/Server/ServerMessages.cs
Ben Marsh 84c453ad8f Horde: Move files into namespaces corresponding to their location on disk.
#preflight none

[CL 20543973 by Ben Marsh in ue5-main branch]
2022-06-07 15:53:33 -04:00

43 lines
1.0 KiB
C#

// Copyright Epic Games, Inc. All Rights Reserved.
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.InteropServices;
namespace Horde.Build.Server
{
/// <summary>
/// Server Info
/// </summary>
public class GetServerInfoResponse
{
/// <summary>
/// Server version info
/// </summary>
public string ServerVersion { get; set; }
/// <summary>
/// The operating system server is hosted on
/// </summary>
public string OsDescription { get; set; }
/// <summary>
/// Whether this is an installed Horde build
/// </summary>
public bool SingleInstance { get; set; }
/// <summary>
/// Constructor
/// </summary>
public GetServerInfoResponse( bool singleInstance)
{
FileVersionInfo versionInfo = FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location);
ServerVersion = versionInfo.ProductVersion ?? String.Empty;
OsDescription = RuntimeInformation.OSDescription;
SingleInstance = singleInstance;
}
}
}