C# Class ElmcityUtils.BlobStorage

Afficher le fichier Open project: judell/elmcity Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

AcquireLease() public méthode

public AcquireLease ( string containername, string blobname ) : ElmcityUtils.HttpResponse
containername string
blobname string
Résultat ElmcityUtils.HttpResponse

BlobStorage() public méthode

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
Résultat System

CompletedIfContainerIsGone() public static méthode

public static CompletedIfContainerIsGone ( BlobStorageResponse response, object o ) : bool
response BlobStorageResponse
o object
Résultat bool

CompletedIfContainerIsNotBeingDeleted() public static méthode

public static CompletedIfContainerIsNotBeingDeleted ( BlobStorageResponse response, Object o ) : bool
response BlobStorageResponse
o Object
Résultat bool

CreateContainer() public méthode

public CreateContainer ( string containername, bool is_public, Hashtable headers ) : BlobStorageResponse
containername string
is_public bool
headers System.Collections.Hashtable
Résultat BlobStorageResponse

DeleteBlob() public méthode

public DeleteBlob ( string containername, string blobname ) : BlobStorageResponse
containername string
blobname string
Résultat BlobStorageResponse

DeleteContainer() public méthode

public DeleteContainer ( string containername ) : BlobStorageResponse
containername string
Résultat BlobStorageResponse

DeserializeObjectFromBytes() public static méthode

public static DeserializeObjectFromBytes ( byte buffer ) : object
buffer byte
Résultat object

DeserializeObjectFromUri() public static méthode

public static DeserializeObjectFromUri ( Uri uri ) : object
uri System.Uri
Résultat object

DictsFromBlobStorageResponse() public méthode

public DictsFromBlobStorageResponse ( ElmcityUtils.HttpResponse response, string xpath, string elements, string &next_marker ) : string>>.List
response ElmcityUtils.HttpResponse
xpath string
elements string
next_marker string
Résultat string>>.List

DoBlobStoreRequest() public méthode

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
Résultat ElmcityUtils.HttpResponse

ExistsBlob() public static méthode

public static ExistsBlob ( Uri uri ) : bool
uri System.Uri
Résultat bool

ExistsBlob() public static méthode

public static ExistsBlob ( string containername, string blobname ) : bool
containername string
blobname string
Résultat bool

ExistsContainer() public static méthode

public static ExistsContainer ( string containername ) : bool
containername string
Résultat bool

GetAzureBlobAsString() public static méthode

public static GetAzureBlobAsString ( string container, string name ) : string
container string
name string
Résultat string

GetAzureBlobAsString() public static méthode

public static GetAzureBlobAsString ( string container, string name, bool use_cdn ) : string
container string
name string
use_cdn bool
Résultat string

GetBlob() public méthode

public GetBlob ( string containername, string blobname ) : BlobStorageResponse
containername string
blobname string
Résultat BlobStorageResponse

GetBlobProperties() public méthode

public GetBlobProperties ( string containername, string blobname ) : BlobStorageResponse
containername string
blobname string
Résultat BlobStorageResponse

LegalizeContainerName() public static méthode

public static LegalizeContainerName ( string containername ) : string
containername string
Résultat string

ListBlobs() public méthode

public ListBlobs ( string containername ) : BlobStorageResponse
containername string
Résultat BlobStorageResponse

ListBlobs() public méthode

public ListBlobs ( string containername, string prefix ) : BlobStorageResponse
containername string
prefix string
Résultat BlobStorageResponse

ListContainers() public méthode

public ListContainers ( ) : BlobStorageResponse
Résultat BlobStorageResponse

ListContainers() public méthode

public ListContainers ( string path ) : BlobStorageResponse
path string
Résultat BlobStorageResponse

MakeAzureBlobUri() public static méthode

public static MakeAzureBlobUri ( string container, string name ) : Uri
container string
name string
Résultat System.Uri

MakeAzureBlobUri() public static méthode

public static MakeAzureBlobUri ( string container, string name, bool use_cdn ) : Uri
container string
name string
use_cdn bool
Résultat System.Uri

MakeDefaultBlobStorage() public static méthode

public static MakeDefaultBlobStorage ( ) : BlobStorage
Résultat BlobStorage

MakeSafeBlobnameFromUrl() public static méthode

public static MakeSafeBlobnameFromUrl ( string url ) : string
url string
Résultat string

MaybeCreateContainer() public méthode

public MaybeCreateContainer ( string containername, bool is_public, Hashtable headers ) : BlobStorageResponse
containername string
is_public bool
headers System.Collections.Hashtable
Résultat BlobStorageResponse

MaybeDeleteContainer() public méthode

public MaybeDeleteContainer ( string containername ) : BlobStorageResponse
containername string
Résultat BlobStorageResponse

PurgeBlobs() public méthode

public PurgeBlobs ( string container, System.TimeSpan keep ) : void
container string
keep System.TimeSpan
Résultat void

PutBlob() public méthode

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
Résultat BlobStorageResponse

PutBlob() public méthode

public PutBlob ( string containername, string blobname, byte data ) : BlobStorageResponse
containername string
blobname string
data byte
Résultat BlobStorageResponse

PutBlob() public méthode

public PutBlob ( string containername, string blobname, byte data, string content_type ) : BlobStorageResponse
containername string
blobname string
data byte
content_type string
Résultat BlobStorageResponse

PutBlob() public méthode

public PutBlob ( string containername, string blobname, string data ) : BlobStorageResponse
containername string
blobname string
data string
Résultat BlobStorageResponse

PutBlob() public méthode

public PutBlob ( string containername, string blobname, string data, string content_type ) : BlobStorageResponse
containername string
blobname string
data string
content_type string
Résultat BlobStorageResponse

PutBlobWithLease() public méthode

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
Résultat BlobStorageResponse

PutBlobWithLease() public méthode

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
Résultat BlobStorageResponse

RetryAcquireLease() public méthode

public RetryAcquireLease ( string containername, string blobname ) : ElmcityUtils.HttpResponse
containername string
blobname string
Résultat ElmcityUtils.HttpResponse

SerializeObjectToAzureBlob() public méthode

public SerializeObjectToAzureBlob ( object o, string container, string blobname ) : BlobStorageResponse
o object
container string
blobname string
Résultat BlobStorageResponse

WriteToAzureBlob() public static méthode

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
Résultat BlobStorageResponse