2026-06-01 16:53:23 +08:00
|
|
|
namespace Plonds.Core.Publishing;
|
|
|
|
|
|
|
|
|
|
public sealed record PlondsS3ClientOptions(
|
|
|
|
|
Uri Endpoint,
|
|
|
|
|
string Region,
|
|
|
|
|
string Bucket,
|
|
|
|
|
string AccessKey,
|
|
|
|
|
string SecretKey,
|
|
|
|
|
string PublicBaseUrl,
|
2026-06-02 08:51:53 +08:00
|
|
|
string PublicBaseKeyPrefix = "")
|
|
|
|
|
{
|
|
|
|
|
public TimeSpan RequestTimeout { get; init; } = TimeSpan.FromMinutes(30);
|
|
|
|
|
|
|
|
|
|
public int MaxUploadAttempts { get; init; } = 3;
|
2026-06-02 10:09:06 +08:00
|
|
|
|
|
|
|
|
public long MultipartThresholdBytes { get; init; } = 8L * 1024 * 1024;
|
|
|
|
|
|
|
|
|
|
public long MultipartPartSizeBytes { get; init; } = 8L * 1024 * 1024;
|
|
|
|
|
|
|
|
|
|
public int MultipartConcurrency { get; init; } = 4;
|
2026-06-02 08:51:53 +08:00
|
|
|
}
|