http-api/src/Application/ConfigurationOptions.cs
2025-04-29 23:51:19 +03:00

29 lines
802 B
C#

namespace cuqmbr.TravelGuide.Application;
public sealed class ConfigurationOptions
{
public static string SectionName { get; } = "Application";
public LocalizationConfigurationOptions Localization { get; set; } = new();
public LoggingConfigurationOptions Logging { get; set; } = new();
}
public sealed class LocalizationConfigurationOptions
{
public string DefaultCultureName { get; set; } = "en-US";
public TimeSpan CacheDuration { get; set; } = TimeSpan.FromMinutes(30);
}
public sealed class LoggingConfigurationOptions
{
public string Type { get; set; } = "SimpleConsole";
public string LogLevel { get; set; } = "Information";
public string TimestampFormat { get; set; } = "yyyy-MM-ddTHH:mm:ss.fffK";
public bool UseUtcTimestamp { get; set; } = true;
}