コード例 #1
0
 private static Task <Member> LoadMember(TokenClient tokenClient, string memberId)
 {
     try
     {
         return(tokenClient.GetMember(memberId));
     }
     catch (KeyNotFoundException)
     {
         // it looks like we have a key but the member it belongs to does not exist in the DB
         throw new Exception("Couldn't log in saved member, not found. Remove keys dir and try again.");
     }
 }