Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
 public StatisticsCounter(RunningTotalBroadcast delegateRunningTotal)
 {
     _runningTotal         = 0.0;
     _delegateRunningTotal = delegateRunningTotal;
 }