Nullify LaunchResult

This commit is contained in:
Jordan Dominion
2023-12-23 12:08:12 -05:00
parent 835ec189c6
commit f8e4af3be5
@@ -1,8 +1,6 @@
using System;
using System.Globalization;
#nullable disable
namespace Tgstation.Server.Host.Components.Session
{
/// <summary>
@@ -13,12 +11,12 @@ namespace Tgstation.Server.Host.Components.Session
/// <summary>
/// The time it took for <see cref="global::System.Diagnostics.Process.WaitForInputIdle()"/> to return or the initial bridge request to process. If <see langword="null"/> the startup timed out.
/// </summary>
public TimeSpan? StartupTime { get; set; }
public TimeSpan? StartupTime { get; init; }
/// <summary>
/// The <see cref="global::System.Diagnostics.Process.ExitCode"/> if it exited.
/// </summary>
public int? ExitCode { get; set; }
public int? ExitCode { get; init; }
/// <inheritdoc />
public override string ToString() => String.Format(CultureInfo.InvariantCulture, "Exit Code: {0}, Time {1}ms", ExitCode, StartupTime?.TotalMilliseconds);