Method | Description | |
---|---|---|
GetBlob ( string containerName, string fileName ) : Task |
||
GetBlobContainerSASToken ( ) : string |
Gets the blob container's SAS token without any parameters. Defaults are Write permissions for 2 minutes
|
|
GetBlobContainerSASToken ( string containerName, SharedAccessBlobPermissions permissions, int minutes ) : string |
Gets a blob container's SAS token
|
|
GetBlobURI ( string fileName, string containerName ) : |
Get a block blob's URI
|
|
GetLatestFromTableStorageAsync ( ) : Task
|
This is a full table scan. Yuck.
|
|
GetPhotoFromTableAsync ( string tableName, string partitionKey, string rowKey ) : Task |
This is the most efficient way to retrieve, using both the partition key and row key
|
|
GetPhotosFromTableAsync ( string tableName, string partitionKey ) : Task |
This is a partition scan. Less optimal, but not as bad as a full table scan.
|
|
MonitorCopy ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer destContainer, string fileName, |
Monitors a blob copy operation
|
|
ReplicateBlobAsync ( string targetConnectionString, string sourceContainerName, string targetContainerName, string blobName, |
Replicates a blob from the current storage account to a target storage account
|
|
SaveToTableStorageAsync ( string tableName, |
Saves an entity to Azure table storage
|
|
SendBroadcastQueueMessageAsync ( string data ) : Task |
Sends a queue message
|
|
SendQueueMessageAsync ( string data ) : Task |
Sends a queue message
|
|
StorageRepository ( Microsoft.WindowsAzure.Storage.CloudStorageAccount account ) : GlobalDemo.DAL.Models | ||
StorageRepository ( string connectionString ) : GlobalDemo.DAL.Models | ||
UploadBlobAsync ( |
public GetBlob ( string containerName, string fileName ) : Task |
||
containerName | string | |
fileName | string | |
return | Task |
public GetBlobContainerSASToken ( string containerName, SharedAccessBlobPermissions permissions, int minutes ) : string | ||
containerName | string | The container name |
permissions | SharedAccessBlobPermissions | The permissions |
minutes | int | Number of minutes the permissions are effective |
return | string |
public GetBlobURI ( string fileName, string containerName ) : |
||
fileName | string | The file name in storage |
containerName | string | The container name |
return |
public GetLatestFromTableStorageAsync ( ) : Task
|
||
return | Task
|
public GetPhotoFromTableAsync ( string tableName, string partitionKey, string rowKey ) : Task |
||
tableName | string | |
partitionKey | string | |
rowKey | string | |
return | Task |
public GetPhotosFromTableAsync ( string tableName, string partitionKey ) : Task |
||
tableName | string | |
partitionKey | string | |
return | Task |
public MonitorCopy ( Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer destContainer, string fileName, |
||
destContainer | Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer | The destination container to monitor |
fileName | string | |
log | The log to write output | |
return | Task |
public ReplicateBlobAsync ( string targetConnectionString, string sourceContainerName, string targetContainerName, string blobName, |
||
targetConnectionString | string | Connection string of the target storage account |
sourceContainerName | string | The source container |
targetContainerName | string | The target container |
blobName | string | The blob to replicate |
log | TextWriter used for logging | |
return | Task |
public SaveToTableStorageAsync ( string tableName, |
||
tableName | string | The name of the table to save to |
model | The PhotoModel object to be saved | |
return | Task |
public SendBroadcastQueueMessageAsync ( string data ) : Task | ||
data | string | The message to send |
return | Task |
public SendQueueMessageAsync ( string data ) : Task | ||
data | string | The message to send |
return | Task |
public StorageRepository ( Microsoft.WindowsAzure.Storage.CloudStorageAccount account ) : GlobalDemo.DAL.Models | ||
account | Microsoft.WindowsAzure.Storage.CloudStorageAccount | |
return | GlobalDemo.DAL.Models |
public StorageRepository ( string connectionString ) : GlobalDemo.DAL.Models | ||
connectionString | string | |
return | GlobalDemo.DAL.Models |
public UploadBlobAsync ( |
||
stream | ||
containerName | string | |
fileName | string | |
return | Task |