C# Класс IronPigeon.Providers.AzureBlobStorage

Наследование: ICloudBlobStorageProvider
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AzureBlobStorage ( CloudStorageAccount account, string containerAddress ) : System

Initializes a new instance of the AzureBlobStorage class.

CreateContainerIfNotExistAsync ( ) : Task

Creates the blob container if it does not exist, and sets its public access permission to allow downloading of blobs by their URIs.

PurgeBlobsExpiringBeforeAsync ( System.DateTime deleteBlobsExpiringBefore = default(DateTime) ) : Task

Purges all blobs set to expire prior to the specified date.

UploadMessageAsync ( Stream content, System.DateTime expirationUtc, string contentType, string contentEncoding, IProgress bytesCopiedProgress, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Описание методов

AzureBlobStorage() публичный Метод

Initializes a new instance of the AzureBlobStorage class.
public AzureBlobStorage ( CloudStorageAccount account, string containerAddress ) : System
account CloudStorageAccount The Azure account to use.
containerAddress string The name of the Azure blob container to use for uploaded blobs.
Результат System

CreateContainerIfNotExistAsync() публичный Метод

Creates the blob container if it does not exist, and sets its public access permission to allow downloading of blobs by their URIs.
public CreateContainerIfNotExistAsync ( ) : Task
Результат Task

PurgeBlobsExpiringBeforeAsync() публичный Метод

Purges all blobs set to expire prior to the specified date.
public PurgeBlobsExpiringBeforeAsync ( System.DateTime deleteBlobsExpiringBefore = default(DateTime) ) : Task
deleteBlobsExpiringBefore System.DateTime /// All blobs scheduled to expire prior to this date will be purged. The default value /// is interpreted as . ///
Результат Task

UploadMessageAsync() публичный Метод

public UploadMessageAsync ( Stream content, System.DateTime expirationUtc, string contentType, string contentEncoding, IProgress bytesCopiedProgress, CancellationToken cancellationToken = default(CancellationToken) ) : Task
content Stream
expirationUtc System.DateTime
contentType string
contentEncoding string
bytesCopiedProgress IProgress
cancellationToken System.Threading.CancellationToken
Результат Task