Example #1
0
 public Optional <IUser> GetUser()
 => _httpRequestTokenAccessor
 .GetRequestHttpToken()
 .MapOptional(token => _tokenEngine.Read <IUser>(token));
Example #2
0
 public Optional <TUserClaim> GetRequestUserClaim <TUserClaim>()
     where TUserClaim : class
 => _httpRequestTokenAccessor
 .GetRequestHttpToken()
 .MapOptional(token => _tokenEngine.Read <TUserClaim>(token));