public async Task <IList <IdentityUser> > GetUsersForClaimAsync(Claim claim, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); if (claim == null) { throw new ArgumentNullException(nameof(claim)); } try { var result = await _userRepository.GetUsersByClaimAsync(claim); return(result); } catch (Exception ex) { Logging.LogException(ex); return(null); } }