Вынести виды файлов Storage в каталог

This commit is contained in:
2026-09-13 20:51:42 +03:00
parent 04d7a0f6fb
commit b7c5e13fc3
3 changed files with 63 additions and 24 deletions
@@ -37,6 +37,8 @@ public sealed class StorageOptions
/// </summary>
public const string SecureEnvKey = "DEAL_STORAGE_SECURE";
private const string TrueLiteral = "true";
public string Endpoint { get; init; } = string.Empty;
public string AccessKey { get; init; } = string.Empty;
@@ -69,5 +71,5 @@ public sealed class StorageOptions
/// </summary>
public static bool IsEnabled(string? rawValue)
=> string.Equals(rawValue, "1", StringComparison.Ordinal)
|| string.Equals(rawValue, "true", StringComparison.OrdinalIgnoreCase);
|| string.Equals(rawValue, TrueLiteral, StringComparison.OrdinalIgnoreCase);
}