AzureBlobsFileProperties

Namespace: Proffer.Storage.Azure.Blobs.Internal

File common properties with metadata stored on Azure Blobs.

public class AzureBlobsFileProperties : Proffer.Storage.IFileProperties

Inheritance ObjectAzureBlobsFileProperties
Implements IFileProperties

Properties

LastModified

Gets the last modified time.

public Nullable<DateTimeOffset> LastModified { get; private set; }

Property Value

Nullable<DateTimeOffset>

Length

Gets the length of the content.

public long Length { get; private set; }

Property Value

Int64

ContentType

Gets or sets the content-type.

public string ContentType { get; set; }

Property Value

String

ETag

Gets the etag.

public string ETag { get; private set; }

Property Value

String

CacheControl

Gets or sets the cache control.

public string CacheControl { get; set; }

Property Value

String

ContentMD5

Gets the MD5 digest of the content.

public string ContentMD5 { get; private set; }

Property Value

String

Metadata

Gets the metadata.

public IDictionary<string, string> Metadata { get; }

Property Value

IDictionary<String, String>

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()

Returns

Task