Exemple #1
0
 public static string KeyValueGet(this IKeyValueStore self, string key)
 {
     return(self.KeyValueGetAsync(key).Result);
 }
Exemple #2
0
        public static async Task <T> KeyValueGetAsync <T>(this IKeyValueStore self, string key)
        {
            var strValue = await self.KeyValueGetAsync(key);

            return(JsonConvert.DeserializeObject <T>(strValue));
        }