Example #1
0
        public async virtual Task<IList<UserLoginInfo>> GetLoginsAsync(ApplicationUser user)
        {
            this.ThrowIfDisposed();
            IEnumerable<Login> list = await this._userManagementService.GetLoginsAsync(user.ToDomainUser(), new CancellationToken());
            if (list != null)
            {
                return list.Select(x => x.ToLoginInfo()).ToList();
            }

            return null;
        }
Example #2
0
 public async  Task AddClaimAsync(ApplicationUser user, System.Security.Claims.Claim claim)
 {
     this.ThrowIfDisposed();
     await this._userManagementService.AddClaimAsync(user.ToDomainUser(), claim.ToDomainClaim(), new CancellationToken());
 }
Example #3
0
 public async virtual Task UpdateAsync(ApplicationUser user)
 {
     this.ThrowIfDisposed();
     await this._userManagementService.UpdateAsync(user.ToDomainUser(), new CancellationToken());
 }
Example #4
0
 public async virtual Task RemoveLoginAsync(ApplicationUser user, UserLoginInfo login)
 {
     this.ThrowIfDisposed();
     await this._userManagementService.RemoveLoginAsync(user.ToDomainUser(), login.ToDomainLogin(), new CancellationToken());
 }
Example #5
0
        public async Task RemoveFromRoleAsync(ApplicationUser user, string roleName)
        {
            this.ThrowIfDisposed();

            await this._userManagementService.RemoveRoleAsync(user.ToDomainUser(), roleName, new CancellationToken());
        }
Example #6
0
 public async Task<bool> IsInRoleAsync(ApplicationUser user, string roleName)
 {
     this.ThrowIfDisposed();
     return await this._userManagementService.IsInRoleAsync(user.ToDomainUser(), roleName, new CancellationToken());
 }