Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ExportAccounts()
- {
- int emptyAccounts = 0;
- int nonEmptyAccounts = 0;
- int errorous = 0;
- string outputPath = this.GetOutputPath();
- Account[] accounts = this.MyWebserviceAdapter.GetAccounts();
- foreach(Account account in accounts)
- {
- try
- {
- if(account.Amount > 0)
- {
- this.ExportNonEmpty(outputPath, account);
- nonEmptyAccounts++;
- } else {
- this.ExportEmptyAccount(outputPath, account);
- emptyAccounts++;
- }
- } catch(Exception e) {
- logger.error(e);
- errorous++;
- }
- }
- logger.debug(string.Format("{0} empty / {1} non empty / {2} errorous", emptyAccounts, nonEmptyAccounts, errorous));
- }
Add Comment
Please, Sign In to add comment