public IChangeService LoadChanges() { try { changeHistory = ChangeStore.GetValues <AccountChange>(ChangeStore.FLAT_FILE_PATH).ToHashSet(); } catch (Exception except)// for expediency, handle any exception by initializing a new hashset { changeHistory = new HashSet <AccountChange>(); } return(this); }
public IChangeService StoreChanges() { ChangeStore.Store(changeHistory, ChangeStore.FLAT_FILE_PATH); return(this); }