示例#1
0
 private void NotifyPersistenceIdChange(string persistenceId)
 {
     if (_persistenceIdSubscribers.TryGetValue(persistenceId, out var subscribers))
     {
         var changed = new EventAppended(persistenceId);
         foreach (var subscriber in subscribers)
         {
             subscriber.Tell(changed);
         }
     }
 }
示例#2
0
 private void NotifyPersistenceIdChange(string persistenceId)
 {
     ISet<IActorRef> subscribers;
     if (_persistenceIdSubscribers.TryGetValue(persistenceId, out subscribers))
     {
         var changed = new EventAppended(persistenceId);
         foreach (var subscriber in subscribers)
             subscriber.Tell(changed);
     }
 }