tgstation-server
6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
src
Tgstation.Server.Host
Extensions
HostBuilderExtensions.cs
Go to the documentation of this file.
1
using
System;
2
3
using
Microsoft.Extensions.Hosting;
4
5
using
Tgstation.Server.Host.IO
;
6
using
Tgstation.Server.Host.Setup
;
7
using
Tgstation.Server.Host.System
;
8
9
namespace
Tgstation.Server.Host.Extensions
10
{
14
static
class
HostBuilderExtensions
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
}
Tgstation.Server.Host.Extensions.HostBuilderExtensions
Extension methods for the IHostBuilder class.
Definition
HostBuilderExtensions.cs:15
Tgstation.Server.Host.Extensions.HostBuilderExtensions.UseSetupApplication
static IHostBuilder UseSetupApplication(this IHostBuilder builder, IAssemblyInformationProvider assemblyInformationProvider, IIOManager ioManager)
Workaround for using the SetupApplication class for host startup.
Definition
HostBuilderExtensions.cs:23
Tgstation.Server.Host.Setup.SetupApplication
DI root for configuring a SetupWizard.
Definition
SetupApplication.cs:21
Tgstation.Server.Host.IO.IIOManager
Interface for using filesystems.
Definition
IIOManager.cs:13
Tgstation.Server.Host.System.IAssemblyInformationProvider
For retrieving the Assembly's location.
Definition
IAssemblyInformationProvider.cs:11
Tgstation.Server.Host.Extensions
Definition
ApplicationBuilderExtensions.cs:22
Tgstation.Server.Host.IO
Definition
BufferedFileStreamProvider.cs:9
Tgstation.Server.Host.Setup
Definition
IPostSetupServices.cs:5
Tgstation.Server.Host.System
Definition
AssemblyInformationProvider.cs:9
Generated by
1.9.8