tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
HostBuilderExtensions.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.Extensions.Hosting;
4
8
10{
15 {
23 public static IHostBuilder UseSetupApplication(
24 this IHostBuilder builder,
25 IAssemblyInformationProvider assemblyInformationProvider,
26 IIOManager ioManager)
27 {
28 ArgumentNullException.ThrowIfNull(builder);
29
30 return builder.ConfigureServices((context, services) =>
31 {
32 var setupApplication = new SetupApplication(context.Configuration);
33 setupApplication.ConfigureServices(services, assemblyInformationProvider, ioManager);
34 });
35 }
36 }
37}
Extension methods for the IHostBuilder class.
static IHostBuilder UseSetupApplication(this IHostBuilder builder, IAssemblyInformationProvider assemblyInformationProvider, IIOManager ioManager)
Workaround for using the SetupApplication class for host startup.
DI root for configuring a SetupWizard.
Interface for using filesystems.
Definition IIOManager.cs:13