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