tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
PostSetupServices.cs
Go to the documentation of this file.
1using System;
2
3using Microsoft.Extensions.Options;
4
7
9{
12 {
15
18
21
24
27
30
33
35 public bool ReloadRequired { get; set; }
36
40 readonly IOptions<GeneralConfiguration> generalConfigurationOptions;
41
45 readonly IOptions<DatabaseConfiguration> databaseConfigurationOptions;
46
50 readonly IOptions<SecurityConfiguration> securityConfigurationOptions;
51
55 readonly IOptions<FileLoggingConfiguration> fileLoggingConfigurationOptions;
56
60 readonly IOptions<ElasticsearchConfiguration> elasticsearchConfigurationOptions;
61
65 readonly IOptions<InternalConfiguration> internalConfigurationOptions;
66
78 IPlatformIdentifier platformIdentifier,
79 IOptions<GeneralConfiguration> generalConfigurationOptions,
80 IOptions<DatabaseConfiguration> databaseConfigurationOptions,
81 IOptions<SecurityConfiguration> securityConfigurationOptions,
82 IOptions<FileLoggingConfiguration> fileLoggingConfigurationOptions,
83 IOptions<ElasticsearchConfiguration> elasticsearchConfigurationOptions,
84 IOptions<InternalConfiguration> internalConfigurationOptions)
85 {
86 PlatformIdentifier = platformIdentifier ?? throw new ArgumentNullException(nameof(platformIdentifier));
87 this.generalConfigurationOptions = generalConfigurationOptions ?? throw new ArgumentNullException(nameof(generalConfigurationOptions));
88 this.databaseConfigurationOptions = databaseConfigurationOptions ?? throw new ArgumentNullException(nameof(databaseConfigurationOptions));
89 this.securityConfigurationOptions = securityConfigurationOptions ?? throw new ArgumentNullException(nameof(securityConfigurationOptions));
90 this.fileLoggingConfigurationOptions = fileLoggingConfigurationOptions ?? throw new ArgumentNullException(nameof(fileLoggingConfigurationOptions));
91 this.elasticsearchConfigurationOptions = elasticsearchConfigurationOptions ?? throw new ArgumentNullException(nameof(elasticsearchConfigurationOptions));
92 this.internalConfigurationOptions = internalConfigurationOptions ?? throw new ArgumentNullException(nameof(internalConfigurationOptions));
93 }
94 }
95}
Configuration options for the Database.DatabaseContext.
Configuration options pertaining to elasticsearch log storage.
Unstable configuration options used internally by TGS.
Configuration options pertaining to user security.
readonly IOptions< ElasticsearchConfiguration > elasticsearchConfigurationOptions
Backing IOptions<TOptions> for ElasticsearchConfiguration.
readonly IOptions< GeneralConfiguration > generalConfigurationOptions
Backing IOptions<TOptions> for GeneralConfiguration.
bool ReloadRequired
If an application reload to get updated configuration values is required.
readonly IOptions< SecurityConfiguration > securityConfigurationOptions
Backing IOptions<TOptions> for SecurityConfiguration.
PostSetupServices(IPlatformIdentifier platformIdentifier, IOptions< GeneralConfiguration > generalConfigurationOptions, IOptions< DatabaseConfiguration > databaseConfigurationOptions, IOptions< SecurityConfiguration > securityConfigurationOptions, IOptions< FileLoggingConfiguration > fileLoggingConfigurationOptions, IOptions< ElasticsearchConfiguration > elasticsearchConfigurationOptions, IOptions< InternalConfiguration > internalConfigurationOptions)
Initializes a new instance of the PostSetupServices class.
readonly IOptions< FileLoggingConfiguration > fileLoggingConfigurationOptions
Backing IOptions<TOptions> for FileLoggingConfiguration.
readonly IOptions< DatabaseConfiguration > databaseConfigurationOptions
Backing IOptions<TOptions> for DatabaseConfiguration.
readonly IOptions< InternalConfiguration > internalConfigurationOptions
Backing IOptions<TOptions> for InternalConfiguration.
Set of objects needed to configure an Core.Application.
For identifying the current platform.