Example #1
0
 void RaiseOnData(MulticastData message)
 {
     RaiseOnData(message.Topic, _clientConfig.ByteEncoder.Decode(message.Data), false);
 }
 void HandleStalePublisher(SourceMessage<IEnumerable<string>> forwardedMessage)
 {
     foreach (var staleTopic in forwardedMessage.Content)
     {
         IDictionary<Interactor, Subscription> subscribers;
         if (_subscriptionCache.TryGetValue(staleTopic, out subscribers))
         {
             var staleMessage = new MulticastData(staleTopic, true, null);
             foreach (var subscriber in subscribers.Keys)
                 subscriber.SendMessage(staleMessage);
         }
     }
 }