Exemplo n.º 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));
 }
Exemplo n.º 2
0
 public Task <IdentityResult> CreateAsync(IntIdentityUser user, CancellationToken cancellationToken)
 {
     InMemoryStores.AddUser(user);
     return(Task.FromResult(IdentityResult.Success));
 }