diff --git a/src/Monq.Core.BasicDotNetMicroservice/Configuration/ConfigConstants.cs b/src/Monq.Core.BasicDotNetMicroservice/Configuration/ConfigConstants.cs deleted file mode 100644 index c5d0b5c..0000000 --- a/src/Monq.Core.BasicDotNetMicroservice/Configuration/ConfigConstants.cs +++ /dev/null @@ -1,27 +0,0 @@ -namespace Monq.Core.BasicDotNetMicroservice.Configuration; - -/// -/// Configuration constants. -/// -public static class ConfigConstants -{ - /// - /// Redis section. - /// - public const string Redis = "Redis"; - - /// - /// RabbitMQ section. - /// - public const string RabbitMq = "RabbitMQ"; - - /// - /// ClickHouse connection string. - /// - public const string ClickHouseConnectionString = "ClickHouseHttp:DefaultConnection:ConnectionString"; - - /// - /// PostgreSQL connection string. - /// - public const string PostgresConnectionString = "PostgreSQL:DefaultConnection:ConnectionString"; -} diff --git a/src/Monq.Core.BasicDotNetMicroservice/Configuration/MicroserviceConstants.cs b/src/Monq.Core.BasicDotNetMicroservice/Configuration/MicroserviceConstants.cs index d1f4a14..6f0d9f7 100644 --- a/src/Monq.Core.BasicDotNetMicroservice/Configuration/MicroserviceConstants.cs +++ b/src/Monq.Core.BasicDotNetMicroservice/Configuration/MicroserviceConstants.cs @@ -9,7 +9,7 @@ namespace Monq.Core.BasicDotNetMicroservice; /// /// Unified microservice constants. /// -public class MicroserviceConstants +public static class MicroserviceConstants { /// /// Http header containing logging event Id. @@ -39,6 +39,32 @@ public class MicroserviceConstants /// public const string CertsDirDefault = "/certs"; + /// + /// Configuration constants. + /// + public static class ConfigConstants + { + /// + /// Redis section. + /// + public const string Redis = "Redis"; + + /// + /// RabbitMQ section. + /// + public const string RabbitMq = "RabbitMQ"; + + /// + /// ClickHouse connection string. + /// + public const string ClickHouseConnectionString = "ClickHouseHttp:DefaultConnection:ConnectionString"; + + /// + /// PostgreSQL connection string. + /// + public const string PostgresConnectionString = "PostgreSQL:DefaultConnection:ConnectionString"; + } + internal static class HostConfiguration { public const string ConsulConfigFileEnv = "CONSUL_CONFIG_FILE";