C# Class ElmcityUtils.TableStorage

Datei anzeigen Open project: judell/elmcity Class Usage Examples

Public Properties

Property Type Description
no_continuation string
query_template_pk_rk string

Public Methods

Method 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

Method 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 method

public static AzureTableAsXmlToListDictObj ( string xmltext ) : object>>.List
xmltext string
return object>>.List

CompletedIfCreated() public static method

public static CompletedIfCreated ( TableStorageHttpResponse response, Object o ) : bool
response TableStorageHttpResponse
o Object
return bool

CompletedIfNotFound() public static method

public static CompletedIfNotFound ( TableStorageHttpResponse response, Object o ) : bool
response TableStorageHttpResponse
o Object
return bool

CountTables() public method

public CountTables ( ) : TableStorageIntResponse
return TableStorageIntResponse

CreateTable() public method

public CreateTable ( string tablename ) : TableStorageHttpResponse
tablename string
return TableStorageHttpResponse

DeleteEntity() public method

public DeleteEntity ( string tablename, string partkey, string rowkey ) : TableStorageListDictResponse
tablename string
partkey string
rowkey string
return TableStorageListDictResponse

DeleteTable() public method

public DeleteTable ( string tablename ) : TableStorageHttpResponse
tablename string
return TableStorageHttpResponse

DictObjToTableStore() public static method

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
return TableStorageListDictResponse

DoEntity() public method

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
return TableStorageListDictResponse

DoTableStoreRequest() public method

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
return ElmcityUtils.HttpResponse

ExistsEntity() public method

public ExistsEntity ( string tablename, string query ) : bool
tablename string
query string
return bool

ExistsEntity() public method

public ExistsEntity ( string tablename, string partition_key, string row_key ) : bool
tablename string
partition_key string
row_key string
return bool

ExistsTable() public method

public ExistsTable ( string tablename ) : TableStorageBoolResponse
tablename string
return TableStorageBoolResponse

InsertEntity() public method

public InsertEntity ( string tablename, object>.Dictionary entity ) : TableStorageListDictResponse
tablename string
entity object>.Dictionary
return TableStorageListDictResponse

ListTables() public method

public ListTables ( ) : TableStorageListDictResponse
return TableStorageListDictResponse

MakeAppContent() public static method

public static MakeAppContent ( object>.Dictionary entity ) : string
entity object>.Dictionary
return string

MakeDefaultTableStorage() public static method

public static MakeDefaultTableStorage ( ) : TableStorage
return TableStorage

MakeSafeBlobnameFromUrl() public static method

public static MakeSafeBlobnameFromUrl ( string url ) : string
url string
return string

MakeSafeRowkey() public static method

public static MakeSafeRowkey ( string key ) : string
key string
return string

MakeSafeRowkeyFromUrl() public static method

public static MakeSafeRowkeyFromUrl ( string url ) : string
url string
return string

MakeSecureTableStorage() public static method

public static MakeSecureTableStorage ( ) : TableStorage
return TableStorage

MaybeCreateTable() public method

public MaybeCreateTable ( string tablename ) : TableStorageHttpResponse
tablename string
return TableStorageHttpResponse

MaybeDeleteEntity() public method

public MaybeDeleteEntity ( string tablename, string partkey, string rowkey ) : TableStorageListDictResponse
tablename string
partkey string
rowkey string
return TableStorageListDictResponse

MergeEntity() public method

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

PrepEntityPathAndId() public method

public PrepEntityPathAndId ( string tablename, string partkey, string rowkey, string &inpath, string &id ) : void
tablename string
partkey string
rowkey string
inpath string
id string
return void

QueryAllEntitiesAsListDict() public method

public QueryAllEntitiesAsListDict ( string table, string query, int max ) : TableStorageListDictResponse
table string
query string
max int
return TableStorageListDictResponse

QueryAllEntitiesAsODataFeed() public method

public QueryAllEntitiesAsODataFeed ( string table, string query ) : string
table string
query string
return string

QueryEntities() public method

public QueryEntities ( string tablename, string query ) : TableStorageListDictResponse
tablename string
query string
return TableStorageListDictResponse

QueryEntities() public static method

public static QueryEntities ( string tablename, string query, TableStorage ts ) : TableStorageListDictResponse
tablename string
query string
ts TableStorage
return TableStorageListDictResponse

QueryEntitiesAsFeed() public method

public QueryEntitiesAsFeed ( string tablename, string query ) : string
tablename string
query string
return string

QueryEntitiesAsHtml() public method

public QueryEntitiesAsHtml ( string tablename, string query, List attrs ) : string
tablename string
query string
attrs List
return string

QueryForSingleEntityAsDictObj() public static method

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

QueryForSingleEntityAsDictStr() public static method

public static QueryForSingleEntityAsDictStr ( TableStorage ts, string table, string q ) : string>.Dictionary
ts TableStorage
table string
q string
return string>.Dictionary

TableStorage() public method

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
return System

UpdateDictToTableStore() public static method

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

UpdateEntity() public method

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

UpmergeDictToTableStore() public static method

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

WriteLogMessage() public method

public WriteLogMessage ( string type, string message, string data ) : TableStorageHttpResponse
type string
message string
data string
return TableStorageHttpResponse

WriteLogMessage() public method

public WriteLogMessage ( string type, string message, string data, string table ) : TableStorageHttpResponse
type string
message string
data string
table string
return TableStorageHttpResponse

WritePriorityLogMessage() public method

public WritePriorityLogMessage ( string type, string message, string data ) : TableStorageHttpResponse
type string
message string
data string
return TableStorageHttpResponse

Property Details

no_continuation public_oe property

public string no_continuation
return string

query_template_pk_rk public_oe static_oe property

public static string query_template_pk_rk
return string