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

            return(user);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 3
0
 public Task <ApplicationUser> FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken = default)
 {
     cancellationToken.ThrowIfCancellationRequested();
     return(_usersTable.FindByNameAsync(normalizedUserName));
 }