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
Beispiel #1
0
        public static void RememberUser(string host_addr, string host_name, string session_id, string mode, string target_field, string target_value)
        {
            var entity = new Dictionary <string, object>();

            entity["mode"]       = mode;
            entity[target_field] = target_value;
            entity["host_addr"]  = host_addr;
            entity["host_name"]  = host_name;
            TableStorage.DictObjToTableStore(TableStorage.Operation.update, entity, "sessions", "sessions", session_id);
        }
Beispiel #2
0
        // called from CombineZonedEventStoresToZonelessEventStore at the end of an aggregation
        // bumps the counters in the cacheurls table to equal the number of webroles running
        public static void MarkBaseCacheEntryForRemoval(string cached_uri, int instance_count)
        {
            var entity = new Dictionary <string, object>();

            entity.Add("cached_uri", cached_uri);
            entity.Add("count", instance_count);
            var rowkey = TableStorage.MakeSafeRowkeyFromUrl(cached_uri);

            //ts.UpdateEntity(cache_control_tablename, cache_control_partkey, rowkey, entity);
            TableStorage.DictObjToTableStore(TableStorage.Operation.update, entity, cache_control_tablename, cache_control_partkey, rowkey);
        }