C# 클래스 Azure.Storage.BlobStorage

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

공개 메소드들

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

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

BlobStorage ( string blobContainerName, string storageConnectionString, bool isPublic = true ) : System

Creates a new BlobStorage object

CreateBlockBlob ( string blobId, string filePath ) : string

Creates a new block blob and populates it from a file

CreateBlockBlob ( string blobId, string contentType, Stream data ) : string

Creates a new block blob and populates it from a stream

CreateBlockBlob ( string blobId, string contentType, byte data ) : string

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

CreateBlockBlob ( string blobId, string contentType, string data ) : string

Creates a new block blob and populates it from a string

DeleteBlob ( string blobId ) : void

Deletes the block blob with the given unique blob name

DeleteBlobContainer ( ) : void

Deletes the blob container

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

Gets a reference to an Append blob by blob id/name

GetBlockBlobDataAsStream ( string blobId ) : Stream

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

GetBlockBlobDataAsString ( string blobId ) : string

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 ( ) : 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 ) : string
blobId string
data string
리턴 string

BlobStorage() 공개 메소드

Creates a new BlobStorage object
public BlobStorage ( string blobContainerName, string storageConnectionString, bool isPublic = true ) : 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
isPublic bool
리턴 System

CreateBlockBlob() 공개 메소드

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

CreateBlockBlob() 공개 메소드

Creates a new block blob and populates it from a stream
public CreateBlockBlob ( string blobId, string contentType, Stream data ) : string
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
리턴 string

CreateBlockBlob() 공개 메소드

Creates a new block blob and populates it from a byte array
public CreateBlockBlob ( string blobId, string contentType, byte data ) : string
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
리턴 string

CreateBlockBlob() 공개 메소드

Creates a new block blob and populates it from a string
public CreateBlockBlob ( string blobId, string contentType, string data ) : string
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
리턴 string

DeleteBlob() 공개 메소드

Deletes the block blob with the given unique blob name
public DeleteBlob ( string blobId ) : void
blobId string The unique block blob identifier
리턴 void

DeleteBlobContainer() 공개 메소드

Deletes the blob container
public DeleteBlobContainer ( ) : void
리턴 void

GetAppendBlockBlobReference() 공개 메소드

Gets a reference to an Append blob by blob id/name
public GetAppendBlockBlobReference ( string blobId ) : Microsoft.WindowsAzure.Storage.Blob.CloudAppendBlob
blobId string
리턴 Microsoft.WindowsAzure.Storage.Blob.CloudAppendBlob

GetBlockBlobDataAsStream() 공개 메소드

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

GetBlockBlobDataAsString() 공개 메소드

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

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 ( ) : IEnumerable
리턴 IEnumerable