Exemplo n.º 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));
 }
Exemplo n.º 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));
 }