internal void UpdateCount(DominosMexicanTrainPlayerItem player) { UpdateCountEventModel thisC = new UpdateCountEventModel(); thisC.ObjectCount = player.LongestTrainList.Count; _aggregator.Publish(thisC); }
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); }
public void Handle(UpdateCountEventModel message) { _tempCards = message.ObjectCount; ObjectCount = GetTotalObjectCount; }