Example #1
0
 /// <summary>
 /// This endpoint returns the requested session information.
 /// </summary>
 /// <param name="readSessionParmeter">Read Session Parmeter</param>
 /// <returns></returns>
 public async Task <ReadSessionResult[]> ReadSession(DeleteSessionParmeter readSessionParmeter)
 {
     return(await Get <ReadSessionResult[], DeleteSessionParmeter>($"/Session/info", readSessionParmeter));
 }
Example #2
0
 /// <summary>
 /// This endpoint renews the given session. This is used with sessions that have a TTL, and it extends the expiration by the TTL.
 /// </summary>
 /// <param name="renewSessionParmeter">Renew Session Parmeter</param>
 /// <returns></returns>
 public async Task <RenewSessionResult[]> RenewSession(DeleteSessionParmeter renewSessionParmeter)
 {
     return(await Get <RenewSessionResult[], DeleteSessionParmeter>($"/Session/list", renewSessionParmeter));
 }
Example #3
0
 /// <summary>
 /// This endpoint destroys the session with the given name. If the session UUID is malformed, an error is returned. If the session UUID does not exist or already expired, a 200 is still returned (the operation is idempotent).
 /// </summary>
 /// <param name="deleteSessionParmeter">Delete Session Parmeter</param>
 /// <returns></returns>
 public async Task <(bool result, bool deleteSessionResult)> DeleteSession(DeleteSessionParmeter deleteSessionParmeter)
 {
     return(await Put <DeleteSessionParmeter, bool>(deleteSessionParmeter, $"/session/destroy"));
 }