C# Class AzurelensBlob.BlobManager

Azure Storage Blob Sample - Demonstrate how to use the Blob Storage service. Blob storage stores unstructured data such as text, binary data, documents or media files. Blobs can be accessed from anywhere in the world via HTTP or HTTPS. Note: This sample uses the .NET 4.5 asynchronous programming model to demonstrate how to call the Storage Service using the storage client libraries asynchronous API's. When used in real applications this approach enables you to improve the responsiveness of your application. Calls to the storage service are prefixed by the await keyword. Documentation References: - What is a Storage Account - http://azure.microsoft.com/en-us/documentation/articles/storage-whatis-account/ - Getting Started with Blobs - http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/ - Blob Service Concepts - http://msdn.microsoft.com/en-us/library/dd179376.aspx - Blob Service REST API - http://msdn.microsoft.com/en-us/library/dd135733.aspx - Blob Service C# API - http://go.microsoft.com/fwlink/?LinkID=398944 - Delegating Access with Shared Access Signatures - http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/ - Storage Emulator - http://msdn.microsoft.com/en-us/library/azure/hh403989.aspx - Asynchronous Programming with Async and Await - http://msdn.microsoft.com/en-us/library/hh191443.aspx
Show file Open project: MicrosoftDX/AzureLens

Public Methods

Method Description
DeleteImage ( string ImageName ) : bool
DownloadImageAsync ( string ImageName ) : Task
ImageExists ( string ImageName ) : bool
ListImagesAsync ( string Location ) : Task
SearchAndDownloadImageAsync ( string ImageNameQuery ) : Task
UploadImage ( Stream ImageToUpload, string ImageName ) : Task

Private Methods

Method Description
CreateStorageAccountFromConnectionString ( string storageConnectionString ) : CloudStorageAccount

Validates the connection string information in app.config and throws an exception if it looks like the user hasn't updated this to valid values.

Method Details

DeleteImage() public static method

public static DeleteImage ( string ImageName ) : bool
ImageName string
return bool

DownloadImageAsync() public static method

public static DownloadImageAsync ( string ImageName ) : Task
ImageName string
return Task

ImageExists() public static method

public static ImageExists ( string ImageName ) : bool
ImageName string
return bool

ListImagesAsync() public static method

public static ListImagesAsync ( string Location ) : Task
Location string
return Task

SearchAndDownloadImageAsync() public static method

public static SearchAndDownloadImageAsync ( string ImageNameQuery ) : Task
ImageNameQuery string
return Task

UploadImage() public static method

public static UploadImage ( Stream ImageToUpload, string ImageName ) : Task
ImageToUpload Stream
ImageName string
return Task