Beispiel #1
0
 /// <summary>
 /// This endpoint returns the specified key. If no key exists at the given path, a 404 is returned instead of a 200 response.For multi-key reads, please consider using transaction.
 /// </summary>
 /// <param name="readKeyParmeter">Read Key Parmeter</param>
 /// <returns></returns>
 public async Task <ReadKeyResult[]> ReadKey(ReadKeyParmeter readKeyParmeter)
 {
     return(await Get <ReadKeyResult[], ReadKeyParmeter>($"/kv/{readKeyParmeter.Key}", readKeyParmeter));
 }
Beispiel #2
0
 /// <summary>
 /// This endpoint returns the specified key. If no key exists at the given path, a 404 is returned instead of a 200 response.For multi-key reads, please consider using transaction.
 /// </summary>
 /// <param name="readKeyParmeter">Read Key Parmeter</param>
 /// <returns></returns>
 public async Task <ReadKeyResult[]> EventList(ReadKeyParmeter readKeyParmeter)
 {
     return(await Get <ReadKeyResult[], ReadKeyParmeter>($"/kv", readKeyParmeter));
 }