-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
BlockBlobStageBlockOptions.cs
35 lines (31 loc) · 1.25 KB
/
BlockBlobStageBlockOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.IO;
using System.Threading;
using Azure.Storage.Blobs.Specialized;
namespace Azure.Storage.Blobs.Models
{
/// <summary>
/// Optional parameters for staging a block for a block blob with
/// <see cref="BlockBlobClient.StageBlockAsync(string, Stream, BlockBlobStageBlockOptions, CancellationToken)"/>.
/// </summary>
public class BlockBlobStageBlockOptions
{
/// <summary>
/// Optional <see cref="BlobRequestConditions"/> to add
/// conditions on the upload of this Block Blob.
/// </summary>
public BlobRequestConditions Conditions { get; set; }
/// <summary>
/// Optional <see cref="IProgress{Long}"/> to provide
/// progress updates about data transfers.
/// </summary>
public IProgress<long> ProgressHandler { get; set; }
/// <summary>
/// Optional override settings for this client's <see cref="BlobClientOptions.TransferValidation"/> settings.
/// StageBlock accepts precalcualted checksums if available.
/// </summary>
public UploadTransferValidationOptions TransferValidation { get; set; }
}
}