C# 클래스 Azure.Storage.BlobStorageAsync

Simple helper class for Windows Azure storage blobs
상속: IBlobStorageAsync
파일 보기 프로젝트 열기: cmatskas/Azure.Storage

공개 메소드들

메소드 설명
AddDataToAppendBlockBlob ( string blobId, string data ) : Task

Adds data to the end of an Append blob. Should be used within a single writer as the code is not optimised for concurrent writers

BlobStorageAsync ( string blobContainerName, string storageConnectionString ) : System

Creates a new BlobStorage object

CreateBlockBlobAsync ( string blobId, string filePath ) : Task

Creates a new block blob and populates it from a file

CreateBlockBlobAsync ( string blobId, string contentType, Stream data ) : Task

Creates a new block blob and populates it from a stream

CreateBlockBlobAsync ( string blobId, string contentType, byte data ) : Task

Creates a new block blob and populates it from a byte array

CreateBlockBlobAsync ( string blobId, string contentType, string data ) : Task

Creates a new block blob and populates it from a string

DeleteBlobAsync ( string blobId ) : System.Threading.Tasks.Task

Deletes the block blob with the given unique blob name

DeleteBlobContainerAsync ( ) : System.Threading.Tasks.Task

Deletes the blob container

GetAppendBlockBlobReference ( string blobId ) : Microsoft.WindowsAzure.Storage.Blob.CloudAppendBlob
GetBlockBlobDataAsStreamAsync ( string blobId ) : Task

Returns as stream with the contents of a block blob with the given blob name

GetBlockBlobDataAsStringAsync ( string blobId ) : Task

Returns as string with the contents of a block blob with the given blob name

GetBlockBlobReference ( string blobId ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob

Gets a reference to a block blob with the given unique blob name

ListBlobsInContainer ( string containerName ) : IEnumerable

Returns a list of all the blobs in a container

메소드 상세

AddDataToAppendBlockBlob() 공개 메소드

Adds data to the end of an Append blob. Should be used within a single writer as the code is not optimised for concurrent writers
public AddDataToAppendBlockBlob ( string blobId, string data ) : Task
blobId string
data string
리턴 Task

BlobStorageAsync() 공개 메소드

Creates a new BlobStorage object
public BlobStorageAsync ( string blobContainerName, string storageConnectionString ) : System
blobContainerName string The name of the blob to be managed
storageConnectionString string The connection string pointing to the storage account (this can be local or hosted in Windows Azure
리턴 System

CreateBlockBlobAsync() 공개 메소드

Creates a new block blob and populates it from a file
public CreateBlockBlobAsync ( string blobId, string filePath ) : Task
blobId string The blobId for the block blob
filePath string
리턴 Task

CreateBlockBlobAsync() 공개 메소드

Creates a new block blob and populates it from a stream
public CreateBlockBlobAsync ( string blobId, string contentType, Stream data ) : Task
blobId string The blobId for the block blob
contentType string The content type for the block blob
data Stream The data to store in the block blob
리턴 Task

CreateBlockBlobAsync() 공개 메소드

Creates a new block blob and populates it from a byte array
public CreateBlockBlobAsync ( string blobId, string contentType, byte data ) : Task
blobId string The blobId for the block blob
contentType string The content type for the block blob
data byte The data to store in the block blob
리턴 Task

CreateBlockBlobAsync() 공개 메소드

Creates a new block blob and populates it from a string
public CreateBlockBlobAsync ( string blobId, string contentType, string data ) : Task
blobId string The blobId for the block blob
contentType string The content type for the block blob
data string The data to store in the block blob
리턴 Task

DeleteBlobAsync() 공개 메소드

Deletes the block blob with the given unique blob name
public DeleteBlobAsync ( string blobId ) : System.Threading.Tasks.Task
blobId string The unique block blob identifier
리턴 System.Threading.Tasks.Task

DeleteBlobContainerAsync() 공개 메소드

Deletes the blob container
public DeleteBlobContainerAsync ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task

GetAppendBlockBlobReference() 공개 메소드

public GetAppendBlockBlobReference ( string blobId ) : Microsoft.WindowsAzure.Storage.Blob.CloudAppendBlob
blobId string
리턴 Microsoft.WindowsAzure.Storage.Blob.CloudAppendBlob

GetBlockBlobDataAsStreamAsync() 공개 메소드

Returns as stream with the contents of a block blob with the given blob name
public GetBlockBlobDataAsStreamAsync ( string blobId ) : Task
blobId string
리턴 Task

GetBlockBlobDataAsStringAsync() 공개 메소드

Returns as string with the contents of a block blob with the given blob name
public GetBlockBlobDataAsStringAsync ( string blobId ) : Task
blobId string
리턴 Task

GetBlockBlobReference() 공개 메소드

Gets a reference to a block blob with the given unique blob name
public GetBlockBlobReference ( string blobId ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob
blobId string The unique block blob identifier
리턴 Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob

ListBlobsInContainer() 공개 메소드

Returns a list of all the blobs in a container
public ListBlobsInContainer ( string containerName ) : IEnumerable
containerName string
리턴 IEnumerable