예제 #1
0
 public async void SetKeyVal(String Key, String Value)
 {
     KeyValue kv = new KeyValue()
     {
         Key = Key,
         Value = Value
     };
     await InsertOrReplace(kv);
 }
예제 #2
0
 private Task<int> InsertOrReplace(KeyValue kv)
 {
     return System.Threading.Tasks.Task.Factory.StartNew(() => dbConn.InsertOrReplace(kv)); ;
 }