Beispiel #1
0
 private void NotifyTagChange(string tag)
 {
     if (_tagSubscribers.TryGetValue(tag, out var subscribers))
     {
         var changed = new TaggedEventAppended(tag);
         foreach (var subscriber in subscribers)
         {
             subscriber.Tell(changed);
         }
     }
 }
Beispiel #2
0
 private void NotifyTagChange(string tag)
 {
     ISet<IActorRef> subscribers;
     if (_tagSubscribers.TryGetValue(tag, out subscribers))
     {
         var changed = new TaggedEventAppended(tag);
         foreach (var subscriber in subscribers)
             subscriber.Tell(changed);
     }
 }