Beispiel #1
0
        /// <inheritdoc/>
        public override async Task <TUser> FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            ThrowIfDisposed();
            var user = await UsersTable.FindByNameAsync(normalizedUserName);

            return(user);
        }
Beispiel #2
0
        public Task <ApplicationUser> FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken)
        {
            if (string.IsNullOrEmpty(normalizedUserName))
            {
                throw new ArgumentNullException(nameof(normalizedUserName), "Parameter normalizedUserName cannot be null or empty.");
            }

            cancellationToken.ThrowIfCancellationRequested();
            return(_usersTable.FindByNameAsync(normalizedUserName));
        }
Beispiel #3
0
 public Task <ApplicationUser> FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken = default)
 {
     cancellationToken.ThrowIfCancellationRequested();
     return(_usersTable.FindByNameAsync(normalizedUserName));
 }