예제 #1
0
        public void Handle(SubscriptionRequested message)
        {
            _repository.PersistPublishing(message.Subscriptions);

            // Reload here!
            Handle(new SubscriptionsChanged());

            UpdatePeers();
        }
예제 #2
0
        public void Handle(SubscriptionRequested message)
        {
            _repository.PersistPublishing(message.Subscriptions);

            // Reload here!
            Handle(new SubscriptionsChanged());

            UpdatePeers();
        }
        public void Handle(SubscriptionRequested message)
        {
            _repository.PersistPublishing(message.Subscriptions);

            // Reload here!
            Handle(new SubscriptionsChanged());

            var peers = _repository.FindPeers();
            peers.Each(SendSubscriptionChangedToPeer);
        }