public static void Fire(TransItems items) { var theList = _whenCommitingSubs; if (theList == null) return; var fields = items.GetFields(); theList.Select(cs => (Action)(() => cs.Act(fields))).SafeRun(); }
public static void Fire(TransItems items) { var theList = _whenCommitingSubs; if (theList == null) return; var fields = items.Enlisted .GroupBy(i => i.Owner) .Select(grp => new TransactionField(grp.Key, grp.Any(i => i.HasChanges))) .ToArray(); for (int i = 0; i < theList.Length; i++) theList[i].Act(fields); }
public TransItems Transacts(int accountId) { TransItems i = new TransItems(accountId, 0); return(i); }