public override Task <string> GetSecurityStampAsync(T user) { var result = String.Empty; if (SecurityStamps.ContainsKey(user.Id)) { result = SecurityStamps[user.Id]; } return(Task.FromResult(result)); }
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)); }