Пример #1
0
        public override async Task <ApplicationUser <TKey> > FindByNameAsync(string normalizedUserName, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            ThrowIfDisposed();
            if (string.IsNullOrEmpty(normalizedUserName))
            {
                throw new ArgumentException($"Parameter {nameof(normalizedUserName)} cannot be null or empty.");
            }

            return(await UsersTable.FindByUserNameAsync(normalizedUserName));
        }