From 9f3e3a36bcaa8ab88e55731376b3f4a8e4a82fd4 Mon Sep 17 00:00:00 2001 From: Dominion Date: Thu, 20 Apr 2023 23:45:57 -0400 Subject: [PATCH] Minor cleanups to ServerFactory --- src/Tgstation.Server.Host/ServerFactory.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/ServerFactory.cs b/src/Tgstation.Server.Host/ServerFactory.cs index 6f5b450603..abcbd7fafb 100644 --- a/src/Tgstation.Server.Host/ServerFactory.cs +++ b/src/Tgstation.Server.Host/ServerFactory.cs @@ -65,6 +65,9 @@ namespace Tgstation.Server.Host // CURSED // https://github.com/dotnet/runtime/blob/30dc7e7aedb7aab085c7d9702afeae5bc5a43133/src/libraries/Microsoft.Extensions.Hosting/src/HostingHostBuilderExtensions.cs#L246-L249 +#if !NET6_0 +#error Validate this monstrosity works on current .NET +#endif IConfigurationSource cmdLineConfig, baseYmlConfig, environmentYmlConfig; if (args.Length == 0) { @@ -120,7 +123,9 @@ namespace Tgstation.Server.Host .UseIISIntegration() .UseApplication(postSetupServices) .SuppressStatusMessages(true) - .UseShutdownTimeout(TimeSpan.FromMinutes(postSetupServices.GeneralConfiguration.RestartTimeoutMinutes))); + .UseShutdownTimeout( + TimeSpan.FromMinutes( + postSetupServices.GeneralConfiguration.RestartTimeoutMinutes))); if (updatePath != null) hostBuilder.UseContentRoot(