internal void UpdateCount(DominosMexicanTrainPlayerItem player)
        {
            UpdateCountEventModel thisC = new UpdateCountEventModel();

            thisC.ObjectCount = player.LongestTrainList.Count;
            _aggregator.Publish(thisC);
        }
Esempio n. 2
0
        public void PublicCount()
        {
            UpdateCountEventModel thisU = new UpdateCountEventModel();

            thisU.ObjectCount = TotalObjects;
            if (_thisE !.HandlerExistsFor(typeof(UpdateCountEventModel)) == false)
            {
                throw new BasicBlankException("Nobody is handlling the update count for tempsets.  Rethink");
            }

            _thisE !.Publish(thisU);
        }
Esempio n. 3
0
 public void Handle(UpdateCountEventModel message)
 {
     _tempCards  = message.ObjectCount;
     ObjectCount = GetTotalObjectCount;
 }