C# Class TwentyTwenty.Storage.Azure.AzureStorageProvider

Inheritance: IStorageProvider
Exibir arquivo Open project: 2020IP/TwentyTwenty.Storage

Public Methods

Method Description
AzureStorageProvider ( AzureProviderOptions options ) : Microsoft.WindowsAzure.Storage
DeleteBlobAsync ( string containerName, string blobName ) : System.Threading.Tasks.Task
DeleteContainerAsync ( string containerName ) : System.Threading.Tasks.Task
GetBlobDescriptorAsync ( string containerName, string blobName ) : Task
GetBlobSasUrl ( string containerName, string blobName, DateTimeOffset expiry, bool isDownload = false, string filename = null, string contentType = null, BlobUrlAccess access = BlobUrlAccess.Read ) : string
GetBlobStreamAsync ( string containerName, string blobName ) : Task
GetBlobUrl ( string containerName, string blobName ) : string
ListBlobsAsync ( string containerName ) : Task>
SaveBlobStreamAsync ( string containerName, string blobName, Stream source, Microsoft.WindowsAzure.Storage.Blob.BlobProperties properties = null, bool closeStream = true ) : System.Threading.Tasks.Task
UpdateBlobPropertiesAsync ( string containerName, string blobName, Microsoft.WindowsAzure.Storage.Blob.BlobProperties properties ) : System.Threading.Tasks.Task

Method Details

AzureStorageProvider() public method

public AzureStorageProvider ( AzureProviderOptions options ) : Microsoft.WindowsAzure.Storage
options AzureProviderOptions
return Microsoft.WindowsAzure.Storage

DeleteBlobAsync() public method

public DeleteBlobAsync ( string containerName, string blobName ) : System.Threading.Tasks.Task
containerName string
blobName string
return System.Threading.Tasks.Task

DeleteContainerAsync() public method

public DeleteContainerAsync ( string containerName ) : System.Threading.Tasks.Task
containerName string
return System.Threading.Tasks.Task

GetBlobDescriptorAsync() public method

public GetBlobDescriptorAsync ( string containerName, string blobName ) : Task
containerName string
blobName string
return Task

GetBlobSasUrl() public method

public GetBlobSasUrl ( string containerName, string blobName, DateTimeOffset expiry, bool isDownload = false, string filename = null, string contentType = null, BlobUrlAccess access = BlobUrlAccess.Read ) : string
containerName string
blobName string
expiry DateTimeOffset
isDownload bool
filename string
contentType string
access BlobUrlAccess
return string

GetBlobStreamAsync() public method

public GetBlobStreamAsync ( string containerName, string blobName ) : Task
containerName string
blobName string
return Task

GetBlobUrl() public method

public GetBlobUrl ( string containerName, string blobName ) : string
containerName string
blobName string
return string

ListBlobsAsync() public method

public ListBlobsAsync ( string containerName ) : Task>
containerName string
return Task>

SaveBlobStreamAsync() public method

public SaveBlobStreamAsync ( string containerName, string blobName, Stream source, Microsoft.WindowsAzure.Storage.Blob.BlobProperties properties = null, bool closeStream = true ) : System.Threading.Tasks.Task
containerName string
blobName string
source Stream
properties Microsoft.WindowsAzure.Storage.Blob.BlobProperties
closeStream bool
return System.Threading.Tasks.Task

UpdateBlobPropertiesAsync() public method

public UpdateBlobPropertiesAsync ( string containerName, string blobName, Microsoft.WindowsAzure.Storage.Blob.BlobProperties properties ) : System.Threading.Tasks.Task
containerName string
blobName string
properties Microsoft.WindowsAzure.Storage.Blob.BlobProperties
return System.Threading.Tasks.Task