This commit is contained in:
2026-05-09 19:14:32 +08:00
7 changed files with 116 additions and 59 deletions
+7
View File
@@ -7,6 +7,12 @@ using System.Threading.Tasks;
namespace IM.InitCommon
{
public class StorageOptions
{
public string DefaultProviderCode { get; set; }
public Dictionary<string, StorageProviderOptions> Providers { get; set; }
}
public class StorageProviderOptions
{
public string ProviderCode { get; init; } = default!;
@@ -37,6 +43,7 @@ namespace IM.InitCommon
public long MaxObjectSizeBytes { get; init; } = 1024L * 1024 * 1024;
public int MinPartSizeBytes { get; init; } = 5 * 1024 * 1024;
public int DefaultPartSizeBytes { get; init; } = 5 * 1024 * 1024;
public int MaxPartCount { get; init; } = 10_000;
}