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); }
public IDomainRepositoryQueryContext <AuthorizedTaskTokenValidationResult> Validate(ValidateUserAccountVerificationByEmailQuery query) { return(DomainRepositoryQueryContextFactory.Create(query, ExtendableContentRepository)); }