C# Class ElmcityUtils.TableStorage

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

Méthodes publiques

Свойство Type Description
no_continuation string
query_template_pk_rk string

Méthodes publiques

Méthode Description
AzureTableAsXmlToListDictObj ( string xmltext ) : object>>.List
CompletedIfCreated ( TableStorageHttpResponse response, Object o ) : bool
CompletedIfNotFound ( TableStorageHttpResponse response, Object o ) : bool
CountTables ( ) : TableStorageIntResponse
CreateTable ( string tablename ) : TableStorageHttpResponse
DeleteEntity ( string tablename, string partkey, string rowkey ) : TableStorageListDictResponse
DeleteTable ( string tablename ) : TableStorageHttpResponse
DictObjToTableStore ( System.Operation operation, object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
DoEntity ( string inpath, object>.Dictionary entity, string id, string method, bool force_unconditional ) : TableStorageListDictResponse
DoTableStoreRequest ( string request_path, string query_string, string method, Hashtable headers, byte data ) : ElmcityUtils.HttpResponse
ExistsEntity ( string tablename, string query ) : bool
ExistsEntity ( string tablename, string partition_key, string row_key ) : bool
ExistsTable ( string tablename ) : TableStorageBoolResponse
InsertEntity ( string tablename, object>.Dictionary entity ) : TableStorageListDictResponse
ListTables ( ) : TableStorageListDictResponse
MakeAppContent ( object>.Dictionary entity ) : string
MakeDefaultTableStorage ( ) : TableStorage
MakeSafeBlobnameFromUrl ( string url ) : string
MakeSafeRowkey ( string key ) : string
MakeSafeRowkeyFromUrl ( string url ) : string
MakeSecureTableStorage ( ) : TableStorage
MaybeCreateTable ( string tablename ) : TableStorageHttpResponse
MaybeDeleteEntity ( string tablename, string partkey, string rowkey ) : TableStorageListDictResponse
MergeEntity ( string tablename, string partkey, string rowkey, object>.Dictionary entity ) : TableStorageListDictResponse
PrepEntityPathAndId ( string tablename, string partkey, string rowkey, string &inpath, string &id ) : void
QueryAllEntitiesAsListDict ( string table, string query, int max ) : TableStorageListDictResponse
QueryAllEntitiesAsODataFeed ( string table, string query ) : string
QueryEntities ( string tablename, string query ) : TableStorageListDictResponse
QueryEntities ( string tablename, string query, TableStorage ts ) : TableStorageListDictResponse
QueryEntitiesAsFeed ( string tablename, string query ) : string
QueryEntitiesAsHtml ( string tablename, string query, List attrs ) : string
QueryForSingleEntityAsDictObj ( TableStorage ts, string table, string q ) : object>.Dictionary
QueryForSingleEntityAsDictStr ( TableStorage ts, string table, string q ) : string>.Dictionary
TableStorage ( string azure_storage_name, string azure_table_host, string azure_b64_secret, string scheme ) : System
UpdateDictToTableStore ( object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
UpdateEntity ( string tablename, string partkey, string rowkey, object>.Dictionary entity ) : TableStorageListDictResponse
UpmergeDictToTableStore ( object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
WriteLogMessage ( string type, string message, string data ) : TableStorageHttpResponse
WriteLogMessage ( string type, string message, string data, string table ) : TableStorageHttpResponse
WritePriorityLogMessage ( string type, string message, string data ) : TableStorageHttpResponse

Private Methods

Méthode Description
GetTsDicts ( ElmcityUtils.HttpResponse http_response ) : object>>.List
MakeAppPayload ( string content, string id ) : byte[]
QueryAll ( string table, string query ) : IEnumerable

Method Details

AzureTableAsXmlToListDictObj() public static méthode

public static AzureTableAsXmlToListDictObj ( string xmltext ) : object>>.List
xmltext string
Résultat object>>.List

CompletedIfCreated() public static méthode

public static CompletedIfCreated ( TableStorageHttpResponse response, Object o ) : bool
response TableStorageHttpResponse
o Object
Résultat bool

CompletedIfNotFound() public static méthode

public static CompletedIfNotFound ( TableStorageHttpResponse response, Object o ) : bool
response TableStorageHttpResponse
o Object
Résultat bool

CountTables() public méthode

public CountTables ( ) : TableStorageIntResponse
Résultat TableStorageIntResponse

CreateTable() public méthode

public CreateTable ( string tablename ) : TableStorageHttpResponse
tablename string
Résultat TableStorageHttpResponse

DeleteEntity() public méthode

public DeleteEntity ( string tablename, string partkey, string rowkey ) : TableStorageListDictResponse
tablename string
partkey string
rowkey string
Résultat TableStorageListDictResponse

DeleteTable() public méthode

public DeleteTable ( string tablename ) : TableStorageHttpResponse
tablename string
Résultat TableStorageHttpResponse

DictObjToTableStore() public static méthode

public static DictObjToTableStore ( System.Operation operation, object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
operation System.Operation
dict object>.Dictionary
table string
partkey string
rowkey string
Résultat TableStorageListDictResponse

DoEntity() public méthode

public DoEntity ( string inpath, object>.Dictionary entity, string id, string method, bool force_unconditional ) : TableStorageListDictResponse
inpath string
entity object>.Dictionary
id string
method string
force_unconditional bool
Résultat TableStorageListDictResponse

DoTableStoreRequest() public méthode

public DoTableStoreRequest ( string request_path, string query_string, string method, Hashtable headers, byte data ) : ElmcityUtils.HttpResponse
request_path string
query_string string
method string
headers System.Collections.Hashtable
data byte
Résultat ElmcityUtils.HttpResponse

ExistsEntity() public méthode

public ExistsEntity ( string tablename, string query ) : bool
tablename string
query string
Résultat bool

ExistsEntity() public méthode

public ExistsEntity ( string tablename, string partition_key, string row_key ) : bool
tablename string
partition_key string
row_key string
Résultat bool

ExistsTable() public méthode

public ExistsTable ( string tablename ) : TableStorageBoolResponse
tablename string
Résultat TableStorageBoolResponse

InsertEntity() public méthode

public InsertEntity ( string tablename, object>.Dictionary entity ) : TableStorageListDictResponse
tablename string
entity object>.Dictionary
Résultat TableStorageListDictResponse

ListTables() public méthode

public ListTables ( ) : TableStorageListDictResponse
Résultat TableStorageListDictResponse

MakeAppContent() public static méthode

public static MakeAppContent ( object>.Dictionary entity ) : string
entity object>.Dictionary
Résultat string

MakeDefaultTableStorage() public static méthode

public static MakeDefaultTableStorage ( ) : TableStorage
Résultat TableStorage

MakeSafeBlobnameFromUrl() public static méthode

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

MakeSafeRowkey() public static méthode

public static MakeSafeRowkey ( string key ) : string
key string
Résultat string

MakeSafeRowkeyFromUrl() public static méthode

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

MakeSecureTableStorage() public static méthode

public static MakeSecureTableStorage ( ) : TableStorage
Résultat TableStorage

MaybeCreateTable() public méthode

public MaybeCreateTable ( string tablename ) : TableStorageHttpResponse
tablename string
Résultat TableStorageHttpResponse

MaybeDeleteEntity() public méthode

public MaybeDeleteEntity ( string tablename, string partkey, string rowkey ) : TableStorageListDictResponse
tablename string
partkey string
rowkey string
Résultat TableStorageListDictResponse

MergeEntity() public méthode

public MergeEntity ( string tablename, string partkey, string rowkey, object>.Dictionary entity ) : TableStorageListDictResponse
tablename string
partkey string
rowkey string
entity object>.Dictionary
Résultat TableStorageListDictResponse

PrepEntityPathAndId() public méthode

public PrepEntityPathAndId ( string tablename, string partkey, string rowkey, string &inpath, string &id ) : void
tablename string
partkey string
rowkey string
inpath string
id string
Résultat void

QueryAllEntitiesAsListDict() public méthode

public QueryAllEntitiesAsListDict ( string table, string query, int max ) : TableStorageListDictResponse
table string
query string
max int
Résultat TableStorageListDictResponse

QueryAllEntitiesAsODataFeed() public méthode

public QueryAllEntitiesAsODataFeed ( string table, string query ) : string
table string
query string
Résultat string

QueryEntities() public méthode

public QueryEntities ( string tablename, string query ) : TableStorageListDictResponse
tablename string
query string
Résultat TableStorageListDictResponse

QueryEntities() public static méthode

public static QueryEntities ( string tablename, string query, TableStorage ts ) : TableStorageListDictResponse
tablename string
query string
ts TableStorage
Résultat TableStorageListDictResponse

QueryEntitiesAsFeed() public méthode

public QueryEntitiesAsFeed ( string tablename, string query ) : string
tablename string
query string
Résultat string

QueryEntitiesAsHtml() public méthode

public QueryEntitiesAsHtml ( string tablename, string query, List attrs ) : string
tablename string
query string
attrs List
Résultat string

QueryForSingleEntityAsDictObj() public static méthode

public static QueryForSingleEntityAsDictObj ( TableStorage ts, string table, string q ) : object>.Dictionary
ts TableStorage
table string
q string
Résultat object>.Dictionary

QueryForSingleEntityAsDictStr() public static méthode

public static QueryForSingleEntityAsDictStr ( TableStorage ts, string table, string q ) : string>.Dictionary
ts TableStorage
table string
q string
Résultat string>.Dictionary

TableStorage() public méthode

public TableStorage ( string azure_storage_name, string azure_table_host, string azure_b64_secret, string scheme ) : System
azure_storage_name string
azure_table_host string
azure_b64_secret string
scheme string
Résultat System

UpdateDictToTableStore() public static méthode

public static UpdateDictToTableStore ( object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
dict object>.Dictionary
table string
partkey string
rowkey string
Résultat TableStorageListDictResponse

UpdateEntity() public méthode

public UpdateEntity ( string tablename, string partkey, string rowkey, object>.Dictionary entity ) : TableStorageListDictResponse
tablename string
partkey string
rowkey string
entity object>.Dictionary
Résultat TableStorageListDictResponse

UpmergeDictToTableStore() public static méthode

public static UpmergeDictToTableStore ( object>.Dictionary dict, string table, string partkey, string rowkey ) : TableStorageListDictResponse
dict object>.Dictionary
table string
partkey string
rowkey string
Résultat TableStorageListDictResponse

WriteLogMessage() public méthode

public WriteLogMessage ( string type, string message, string data ) : TableStorageHttpResponse
type string
message string
data string
Résultat TableStorageHttpResponse

WriteLogMessage() public méthode

public WriteLogMessage ( string type, string message, string data, string table ) : TableStorageHttpResponse
type string
message string
data string
table string
Résultat TableStorageHttpResponse

WritePriorityLogMessage() public méthode

public WritePriorityLogMessage ( string type, string message, string data ) : TableStorageHttpResponse
type string
message string
data string
Résultat TableStorageHttpResponse

Property Details

no_continuation public_oe property

public string no_continuation
Résultat string

query_template_pk_rk public_oe static_oe property

public static string query_template_pk_rk
Résultat string