public void WorkThreadFunction() { try { TransactionUtil.transfer2Server(); TransactionUtil.downloadStation(); TransactionUtil.downloadAuthenCode(); TransactionUtil.downloadUsers(); TransactionUtil.downloadLounge(); TransactionUtil.downloadArea(); TransactionUtil.downloadGroup(); TransactionUtil.downloadRole(); // do any background work } catch (Exception ex) { // log errors logger.Equals(ex.Message); } }