Пример #1
0
 public Task <IdentityResult> CreateAsync(IntIdentityRole role, CancellationToken cancellationToken)
 {
     if (role == null)
     {
         throw new ArgumentNullException(nameof(role));
     }
     InMemoryStores.AddRole(role);
     return(Task.FromResult(IdentityResult.Success));
 }
Пример #2
0
 public Task <IdentityResult> CreateAsync(IntIdentityUser user, CancellationToken cancellationToken)
 {
     InMemoryStores.AddUser(user);
     return(Task.FromResult(IdentityResult.Success));
 }