Enhanced logging with Serilog, including request logging and structured exception handling during startup. Added support for the Options Pattern with new configuration classes: `DocumentOperatorSettings`, `RedisSettings`, and `ApiKeySettings`. Introduced `TenantInfo` class for tenant management. Updated project files to include new dependencies and removed unused `Configuration` folder reference.
10 lines
342 B
C#
10 lines
342 B
C#
namespace DocumentOperator.Infrastructure.Configuration;
|
|
|
|
public class RedisSettings
|
|
{
|
|
public const string SectionName = "RedisSettings";
|
|
|
|
public string ConnectionString { get; set; } = "localhost:6379";
|
|
public string InstanceName { get; set; } = "DocumentOperator:";
|
|
public int CacheExpirationMinutes { get; set; } = 60;
|
|
} |