-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
FileDownloadInfo.cs
42 lines (36 loc) · 1.4 KB
/
FileDownloadInfo.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
36
37
38
39
40
41
42
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.IO;
namespace Azure.Storage.Files.DataLake.Models
{
/// <summary>
/// The properties and content returned from downloading a file.
/// </summary>
public class FileDownloadInfo
{
/// <summary>
/// The number of bytes present in the response body.
/// </summary>
public long ContentLength { get; internal set; }
/// <summary>
/// Content.
/// </summary>
public Stream Content { get; internal set; }
/// <summary>
/// If the file has an MD5 hash and this operation is to read the full file,
/// this response header is returned so that the client can check for message content integrity.
/// </summary>
#pragma warning disable CA1819 // Properties should not return arrays
public byte[] ContentHash { get; internal set; }
#pragma warning restore CA1819 // Properties should not return arrays
/// <summary>
/// Properties returned when downloading a file.
/// </summary>
public FileDownloadDetails Properties { get; internal set; }
/// <summary>
/// Prevent direct instantiation of FileDownloadInfo instances.
/// You can use DataLakeModelFactory.FileDownloadInfo instead.
/// </summary>
internal FileDownloadInfo() { }
}
}