コード例 #1
0
        public async Task <IList <Claim> > GetClaimsAsync(OdissUser user)
        {
            var session = await sessionStore.GetByUserIdAsync(user.Id);

            if (session == null)
            {
                throw new NullReferenceException("No session for user found");
            }

            return(serialization.Deserialize <IList <Claim> >(session.Data));
        }