AzureBlobsFileProperties
Namespace: Proffer.Storage.Azure.Blobs.Internal
File common properties with metadata stored on Azure Blobs.
public class AzureBlobsFileProperties : Proffer.Storage.IFileProperties
Inheritance Object → AzureBlobsFileProperties
Implements IFileProperties
Properties
LastModified
Gets the last modified time.
public Nullable<DateTimeOffset> LastModified { get; private set; }
Property Value
Length
Gets the length of the content.
public long Length { get; private set; }
Property Value
ContentType
Gets or sets the content-type.
public string ContentType { get; set; }
Property Value
ETag
Gets the etag.
public string ETag { get; private set; }
Property Value
CacheControl
Gets or sets the cache control.
public string CacheControl { get; set; }
Property Value
ContentMD5
Gets the MD5 digest of the content.
public string ContentMD5 { get; private set; }
Property Value
Metadata
Gets the metadata.
public IDictionary<string, string> Metadata { get; }
Property Value
Constructors
AzureBlobsFileProperties(BlobClient, BlobProperties)
Initializes a new instance of the AzureBlobsFileProperties class.
public AzureBlobsFileProperties(BlobClient blobClient, BlobProperties blobProperties)
Parameters
blobClient
BlobClient
The Azure Blobs client.
blobProperties
BlobProperties
The blob properties.
AzureBlobsFileProperties(BlobClient, BlobItem)
Initializes a new instance of the AzureBlobsFileProperties class.
public AzureBlobsFileProperties(BlobClient blobClient, BlobItem blobItem)
Parameters
blobClient
BlobClient
The Azure Blobs client.
blobItem
BlobItem
The blob item from listing.
Methods
SaveAsync()
internal Task SaveAsync()