public Task <IdentityResult> DeleteAsync(Models.IdentityModels.IdentityUser user, CancellationToken cancellationToken) { _userCommands.Enqueue(new DeleteUserCommandModel { UserId = user.Id }); return(Task.FromResult(IdentityResult.Success)); }
public Task <IdentityResult> CreateAsync(Models.IdentityModels.IdentityUser user, CancellationToken cancellationToken) { if (_user.TryAdd(user.Id, null)) { while (_userCommands.TryDequeue(out var result)) { _userCommands.Enqueue(result); } return(Task.FromResult(IdentityResult.Success)); } throw new UserIdNotUniqueException(); }
public Task <IdentityResult> UpdateAsync(Models.IdentityModels.IdentityUser user, CancellationToken cancellationToken) { return(Task.FromResult(IdentityResult.Success)); }
public Task SetUserNameAsync(Models.IdentityModels.IdentityUser user, string userName, CancellationToken cancellationToken) { throw new NotImplementedException(); }
public Task <string> GetUserIdAsync(Models.IdentityModels.IdentityUser user, CancellationToken cancellationToken) { return(Task.FromResult(user.Id.ToString())); }
public Task <string> GetNormalizedUserNameAsync(Models.IdentityModels.IdentityUser user, CancellationToken cancellationToken) { throw new NotImplementedException(); }