internal void Initialize(string bucketName, string objectKey, string uploadId, IEnumerable <UploadPartResponse> parts) { BucketName = bucketName; ObjectKey = objectKey; UploadId = uploadId; foreach (UploadPartResponse part in parts) { UploadParts.Add(new S3PartInfo(part.ETag, part.PartNumber)); } }
public CompleteMultipartUploadRequest(string bucketName, string objectKey, string uploadId, IEnumerable <UploadPartResponse> parts) : this(bucketName, objectKey, uploadId) { Validator.RequireNotNull(parts, nameof(parts)); if (UploadParts == null) { UploadParts = new List <S3PartInfo>(); } foreach (UploadPartResponse part in parts) { UploadParts.Add(new S3PartInfo(part.ETag, part.PartNumber)); } }