3using Microsoft.Extensions.Configuration;
4using Microsoft.Extensions.DependencyInjection;
5using Microsoft.Extensions.Hosting;
33 Configuration = configuration ??
throw new ArgumentNullException(nameof(configuration));
44 ArgumentNullException.ThrowIfNull(services);
45 ArgumentNullException.ThrowIfNull(assemblyInformationProvider);
46 ArgumentNullException.ThrowIfNull(ioManager);
48 services.SetupLogging(config => config.MinimumLevel.Override(
"Microsoft", LogEventLevel.Warning));
50 services.AddSingleton(ioManager);
51 services.AddSingleton(assemblyInformationProvider);
53 services.AddSingleton<
IConsole, IO.Console>();
Configuration options for the Database.DatabaseContext.
Configuration options pertaining to elasticsearch log storage.
File logging configuration options.
General configuration options.
Unstable configuration options used internally by TGS.
Configuration options pertaining to user security.
DI root for configuring a SetupWizard.
virtual void ConfigureHostedService(IServiceCollection services)
Configures the IHostedService.
void ConfigureServices(IServiceCollection services, IAssemblyInformationProvider assemblyInformationProvider, IIOManager ioManager)
Configure dependency injected services.
SetupApplication(IConfiguration configuration)
Initializes a new instance of the SetupApplication class.
IConfiguration Configuration
The IConfiguration for the SetupApplication.
For creating raw DbConnections.
Abstraction for global::System.Console.
Interface for using filesystems.
Set of objects needed to configure an Core.Application.
For waiting asynchronously.