Вынести виды файлов Storage в каталог
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user