C# Class UCosmic.BinaryData.AzureBlobBinaryDataStorage

Inheritance: IStoreBinaryData
显示文件 Open project: ucosmic/UCosmicPreview

Public Methods

Method Description
AzureBlobBinaryDataStorage ( string connectionStringName ) : System
Delete ( string path ) : void
Exists ( string path ) : bool
Get ( string path ) : byte[]
Put ( string path, byte data, bool overwrite = false ) : void

Private Methods

Method Description
GetBlob ( string path, Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer container = null ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob
GetBlobName ( string path ) : string
GetContainer ( string path ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer
GetContainerName ( string path ) : string

Method Details

AzureBlobBinaryDataStorage() public method

public AzureBlobBinaryDataStorage ( string connectionStringName ) : System
connectionStringName string
return System

Delete() public method

public Delete ( string path ) : void
path string
return void

Exists() public method

public Exists ( string path ) : bool
path string
return bool

Get() public method

public Get ( string path ) : byte[]
path string
return byte[]

Put() public method

public Put ( string path, byte data, bool overwrite = false ) : void
path string
data byte
overwrite bool
return void