C# Класс ElmcityUtils.BlobStorage

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AcquireLease ( string containername, string blobname ) : ElmcityUtils.HttpResponse
BlobStorage ( string azure_storage_account, string azure_blob_host, string azure_b64_secret ) : System
CompletedIfContainerIsGone ( BlobStorageResponse response, object o ) : bool
CompletedIfContainerIsNotBeingDeleted ( BlobStorageResponse response, Object o ) : bool
CreateContainer ( string containername, bool is_public, Hashtable headers ) : BlobStorageResponse
DeleteBlob ( string containername, string blobname ) : BlobStorageResponse
DeleteContainer ( string containername ) : BlobStorageResponse
DeserializeObjectFromBytes ( byte buffer ) : object
DeserializeObjectFromUri ( Uri uri ) : object
DictsFromBlobStorageResponse ( ElmcityUtils.HttpResponse response, string xpath, string elements, string &next_marker ) : string>>.List
DoBlobStoreRequest ( string containername, string blobname, string method, Hashtable headers, byte data, string content_type, string query_string ) : ElmcityUtils.HttpResponse
ExistsBlob ( Uri uri ) : bool
ExistsBlob ( string containername, string blobname ) : bool
ExistsContainer ( string containername ) : bool
GetAzureBlobAsString ( string container, string name ) : string
GetAzureBlobAsString ( string container, string name, bool use_cdn ) : string
GetBlob ( string containername, string blobname ) : BlobStorageResponse
GetBlobProperties ( string containername, string blobname ) : BlobStorageResponse
LegalizeContainerName ( string containername ) : string
ListBlobs ( string containername ) : BlobStorageResponse
ListBlobs ( string containername, string prefix ) : BlobStorageResponse
ListContainers ( ) : BlobStorageResponse
ListContainers ( string path ) : BlobStorageResponse
MakeAzureBlobUri ( string container, string name ) : Uri
MakeAzureBlobUri ( string container, string name, bool use_cdn ) : Uri
MakeDefaultBlobStorage ( ) : BlobStorage
MakeSafeBlobnameFromUrl ( string url ) : string
MaybeCreateContainer ( string containername, bool is_public, Hashtable headers ) : BlobStorageResponse
MaybeDeleteContainer ( string containername ) : BlobStorageResponse
PurgeBlobs ( string container, System.TimeSpan keep ) : void
PutBlob ( string containername, string blobname, Hashtable headers, byte data, string content_type ) : BlobStorageResponse
PutBlob ( string containername, string blobname, byte data ) : BlobStorageResponse
PutBlob ( string containername, string blobname, byte data, string content_type ) : BlobStorageResponse
PutBlob ( string containername, string blobname, string data ) : BlobStorageResponse
PutBlob ( string containername, string blobname, string data, string content_type ) : BlobStorageResponse
PutBlobWithLease ( string container, string blobname, Hashtable headers, byte data, string content_type ) : BlobStorageResponse
PutBlobWithLease ( string container, string blobname, Hashtable headers, string utf_string, string content_type ) : BlobStorageResponse
RetryAcquireLease ( string containername, string blobname ) : ElmcityUtils.HttpResponse
SerializeObjectToAzureBlob ( object o, string container, string blobname ) : BlobStorageResponse
WriteToAzureBlob ( BlobStorage bs, string containername, string blobname, string content_type, byte bytes ) : BlobStorageResponse

Описание методов

AcquireLease() публичный Метод

public AcquireLease ( string containername, string blobname ) : ElmcityUtils.HttpResponse
containername string
blobname string
Результат ElmcityUtils.HttpResponse

BlobStorage() публичный Метод

public BlobStorage ( string azure_storage_account, string azure_blob_host, string azure_b64_secret ) : System
azure_storage_account string
azure_blob_host string
azure_b64_secret string
Результат System

CompletedIfContainerIsGone() публичный статический Метод

public static CompletedIfContainerIsGone ( BlobStorageResponse response, object o ) : bool
response BlobStorageResponse
o object
Результат bool

CompletedIfContainerIsNotBeingDeleted() публичный статический Метод

public static CompletedIfContainerIsNotBeingDeleted ( BlobStorageResponse response, Object o ) : bool
response BlobStorageResponse
o Object
Результат bool

CreateContainer() публичный Метод

public CreateContainer ( string containername, bool is_public, Hashtable headers ) : BlobStorageResponse
containername string
is_public bool
headers System.Collections.Hashtable
Результат BlobStorageResponse

DeleteBlob() публичный Метод

public DeleteBlob ( string containername, string blobname ) : BlobStorageResponse
containername string
blobname string
Результат BlobStorageResponse

DeleteContainer() публичный Метод

public DeleteContainer ( string containername ) : BlobStorageResponse
containername string
Результат BlobStorageResponse

DeserializeObjectFromBytes() публичный статический Метод

public static DeserializeObjectFromBytes ( byte buffer ) : object
buffer byte
Результат object

DeserializeObjectFromUri() публичный статический Метод

public static DeserializeObjectFromUri ( Uri uri ) : object
uri System.Uri
Результат object

DictsFromBlobStorageResponse() публичный Метод

public DictsFromBlobStorageResponse ( ElmcityUtils.HttpResponse response, string xpath, string elements, string &next_marker ) : string>>.List
response ElmcityUtils.HttpResponse
xpath string
elements string
next_marker string
Результат string>>.List

DoBlobStoreRequest() публичный Метод

public DoBlobStoreRequest ( string containername, string blobname, string method, Hashtable headers, byte data, string content_type, string query_string ) : ElmcityUtils.HttpResponse
containername string
blobname string
method string
headers System.Collections.Hashtable
data byte
content_type string
query_string string
Результат ElmcityUtils.HttpResponse

ExistsBlob() публичный статический Метод

public static ExistsBlob ( Uri uri ) : bool
uri System.Uri
Результат bool

ExistsBlob() публичный статический Метод

public static ExistsBlob ( string containername, string blobname ) : bool
containername string
blobname string
Результат bool

ExistsContainer() публичный статический Метод

public static ExistsContainer ( string containername ) : bool
containername string
Результат bool

GetAzureBlobAsString() публичный статический Метод

public static GetAzureBlobAsString ( string container, string name ) : string
container string
name string
Результат string

GetAzureBlobAsString() публичный статический Метод

public static GetAzureBlobAsString ( string container, string name, bool use_cdn ) : string
container string
name string
use_cdn bool
Результат string

GetBlob() публичный Метод

public GetBlob ( string containername, string blobname ) : BlobStorageResponse
containername string
blobname string
Результат BlobStorageResponse

GetBlobProperties() публичный Метод

public GetBlobProperties ( string containername, string blobname ) : BlobStorageResponse
containername string
blobname string
Результат BlobStorageResponse

LegalizeContainerName() публичный статический Метод

public static LegalizeContainerName ( string containername ) : string
containername string
Результат string

ListBlobs() публичный Метод

public ListBlobs ( string containername ) : BlobStorageResponse
containername string
Результат BlobStorageResponse

ListBlobs() публичный Метод

public ListBlobs ( string containername, string prefix ) : BlobStorageResponse
containername string
prefix string
Результат BlobStorageResponse

ListContainers() публичный Метод

public ListContainers ( ) : BlobStorageResponse
Результат BlobStorageResponse

ListContainers() публичный Метод

public ListContainers ( string path ) : BlobStorageResponse
path string
Результат BlobStorageResponse

MakeAzureBlobUri() публичный статический Метод

public static MakeAzureBlobUri ( string container, string name ) : Uri
container string
name string
Результат System.Uri

MakeAzureBlobUri() публичный статический Метод

public static MakeAzureBlobUri ( string container, string name, bool use_cdn ) : Uri
container string
name string
use_cdn bool
Результат System.Uri

MakeDefaultBlobStorage() публичный статический Метод

public static MakeDefaultBlobStorage ( ) : BlobStorage
Результат BlobStorage

MakeSafeBlobnameFromUrl() публичный статический Метод

public static MakeSafeBlobnameFromUrl ( string url ) : string
url string
Результат string

MaybeCreateContainer() публичный Метод

public MaybeCreateContainer ( string containername, bool is_public, Hashtable headers ) : BlobStorageResponse
containername string
is_public bool
headers System.Collections.Hashtable
Результат BlobStorageResponse

MaybeDeleteContainer() публичный Метод

public MaybeDeleteContainer ( string containername ) : BlobStorageResponse
containername string
Результат BlobStorageResponse

PurgeBlobs() публичный Метод

public PurgeBlobs ( string container, System.TimeSpan keep ) : void
container string
keep System.TimeSpan
Результат void

PutBlob() публичный Метод

public PutBlob ( string containername, string blobname, Hashtable headers, byte data, string content_type ) : BlobStorageResponse
containername string
blobname string
headers System.Collections.Hashtable
data byte
content_type string
Результат BlobStorageResponse

PutBlob() публичный Метод

public PutBlob ( string containername, string blobname, byte data ) : BlobStorageResponse
containername string
blobname string
data byte
Результат BlobStorageResponse

PutBlob() публичный Метод

public PutBlob ( string containername, string blobname, byte data, string content_type ) : BlobStorageResponse
containername string
blobname string
data byte
content_type string
Результат BlobStorageResponse

PutBlob() публичный Метод

public PutBlob ( string containername, string blobname, string data ) : BlobStorageResponse
containername string
blobname string
data string
Результат BlobStorageResponse

PutBlob() публичный Метод

public PutBlob ( string containername, string blobname, string data, string content_type ) : BlobStorageResponse
containername string
blobname string
data string
content_type string
Результат BlobStorageResponse

PutBlobWithLease() публичный Метод

public PutBlobWithLease ( string container, string blobname, Hashtable headers, byte data, string content_type ) : BlobStorageResponse
container string
blobname string
headers System.Collections.Hashtable
data byte
content_type string
Результат BlobStorageResponse

PutBlobWithLease() публичный Метод

public PutBlobWithLease ( string container, string blobname, Hashtable headers, string utf_string, string content_type ) : BlobStorageResponse
container string
blobname string
headers System.Collections.Hashtable
utf_string string
content_type string
Результат BlobStorageResponse

RetryAcquireLease() публичный Метод

public RetryAcquireLease ( string containername, string blobname ) : ElmcityUtils.HttpResponse
containername string
blobname string
Результат ElmcityUtils.HttpResponse

SerializeObjectToAzureBlob() публичный Метод

public SerializeObjectToAzureBlob ( object o, string container, string blobname ) : BlobStorageResponse
o object
container string
blobname string
Результат BlobStorageResponse

WriteToAzureBlob() публичный статический Метод

public static WriteToAzureBlob ( BlobStorage bs, string containername, string blobname, string content_type, byte bytes ) : BlobStorageResponse
bs BlobStorage
containername string
blobname string
content_type string
bytes byte
Результат BlobStorageResponse