Пример #1
0
        public override Task <string> GetSecurityStampAsync(T user)
        {
            var result = String.Empty;

            if (SecurityStamps.ContainsKey(user.Id))
            {
                result = SecurityStamps[user.Id];
            }
            return(Task.FromResult(result));
        }
Пример #2
0
 public override Task SetSecurityStampAsync(T user, string stamp)
 {
     if (user != null && !String.IsNullOrWhiteSpace(user.Id))
     {
         if (!SecurityStamps.ContainsKey(user.Id))
         {
             SecurityStamps.Add(user.Id, String.Empty);
         }
         SecurityStamps[user.Id] = stamp;
     }
     return(Task.FromResult(0));
 }