C# Class IronPigeon.Providers.AzureBlobStorage

Inheritance: ICloudBlobStorageProvider
Afficher le fichier Open project: AArnott/IronPigeon Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

AzureBlobStorage() public méthode

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.
Résultat System

CreateContainerIfNotExistAsync() public méthode

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
Résultat Task

PurgeBlobsExpiringBeforeAsync() public méthode

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 . ///
Résultat Task

UploadMessageAsync() public méthode

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
Résultat Task