-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Storage][DataMovement] Refactor/add bounds to CommitChunkHandler (#4…
- Loading branch information
1 parent
40f2b24
commit fa515eb
Showing
8 changed files
with
129 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
sdk/storage/Azure.Storage.DataMovement/src/QueueStageChunkArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
namespace Azure.Storage.DataMovement | ||
{ | ||
/// <summary> | ||
/// This class is interchangable for | ||
/// Stage Block (Put Block), Stage Block From Uri (Put Block From URL), | ||
/// Append Block (Append Block), Append Block From Uri (Append Block From URL), | ||
/// Upload Page (Put Page), Upload Pages From Uri (Put Pages From URL) | ||
/// | ||
/// Basically any transfer operation that must end in a Commit Block List | ||
/// will end up using this internal event argument to track the success | ||
/// and the bytes transferred to ensure the correct amount of bytes are tranferred. | ||
/// </summary> | ||
internal class QueueStageChunkArgs | ||
{ | ||
public long Offset { get; } | ||
public long BytesTransferred { get; } | ||
|
||
public QueueStageChunkArgs(long offset, long bytesTransferred) | ||
{ | ||
Offset = offset; | ||
BytesTransferred = bytesTransferred; | ||
} | ||
} | ||
} |
Oops, something went wrong.