public static IList <Ticket> CreateCollection(RunningTotalBroadcast runningTotal) { StatisticsCounter cls = new StatisticsCounter(runningTotal); IList <Ticket> parent = new ClosureAddProxy <Ticket>(new List <Ticket>(), new DelegateClosure <Ticket>(cls.ClosureAddMethod)); return(new ClosureRemoveProxy <Ticket>(parent, new DelegateClosure <Ticket>(cls.ClosureRemoveMethod))); }
public StatisticsCounter(RunningTotalBroadcast delegateRunningTotal) { _runningTotal = 0.0; _delegateRunningTotal = delegateRunningTotal; }