コード例 #1
0
        private async Task <AuthorizedTaskTokenValidationResult> ValidateRequestAsync(
            CompleteUserAccountRecoveryViaEmailCommand command,
            IExecutionContext executionContext
            )
        {
            var query = new ValidateUserAccountRecoveryByEmailQuery()
            {
                UserAreaCode = command.UserAreaCode,
                Token        = command.Token
            };

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

            result.ThrowIfNotSuccess();

            return(result);
        }
 public IDomainRepositoryQueryContext <AuthorizedTaskTokenValidationResult> Validate(ValidateUserAccountRecoveryByEmailQuery query)
 {
     return(DomainRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
 }