public async Task <AccountTransferExtractResult> Extract(AccountTransferSearch option, CancellationToken token) { var result = new AccountTransferExtractResult(); result.Details = (await accounttransferProcessor.ExtractAsync(option, token)).ToArray(); result.Logs = result.Details.SelectMany(x => x.GetInvalidLogs()).ToArray(); return(result); }
public async Task <AccountTransferDetailsResult> ExtractAsync(string SessionKey, AccountTransferSearch SearchOption) { return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { var result = (await accounttransferProcessor.ExtractAsync(SearchOption, token)).ToList(); return new AccountTransferDetailsResult { ProcessResult = new ProcessResult { Result = true }, AccountTransferDetail = result, }; }, logger)); }