You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
43 lines
1.0 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|
|
|