示例#1
0
        private async Task <AuthorizedTaskTokenValidationResult> ValidateRequestAsync(
            CompleteUserAccountVerificationViaEmailCommand command,
            IExecutionContext executionContext
            )
        {
            var query = new ValidateUserAccountVerificationByEmailQuery()
            {
                UserAreaCode = command.UserAreaCode,
                Token        = command.Token
            };

            var result = await _domainRepository
                         .WithContext(executionContext)
                         .ExecuteQueryAsync(query);

            result.ThrowIfNotSuccess();

            return(result);
        }
示例#2
0
 public IDomainRepositoryQueryContext <AuthorizedTaskTokenValidationResult> Validate(ValidateUserAccountVerificationByEmailQuery query)
 {
     return(DomainRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
 }