예제 #1
0
        public async Task <User> GetAsync(string email, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            User user = await repository.GetAsync(email, cancellationToken);

            if (user == null)
            {
                return(null);
            }
            user.IsPersisted = true;

            return(user);
        }