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); } } }
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); } }