Exemplo n.º 1
0
        private void NotifyNewPersistenceIdAdded(string persistenceId)
        {
            var isNew = TryAddPersistenceId(persistenceId);

            if (isNew && HasAllPersistenceIdSubscribers && !IsTagId(persistenceId))
            {
                var added = new PersistenceIdAdded(persistenceId);
                foreach (var subscriber in _allPersistenceIdSubscribers)
                {
                    subscriber.Tell(added);
                }
            }
        }
Exemplo n.º 2
0
 private void NotifyNewPersistenceIdAdded(string persistenceId)
 {
     var isNew = TryAddPersistenceId(persistenceId);
     if (isNew && HasAllPersistenceIdSubscribers && !IsTagId(persistenceId))
     {
         var added = new PersistenceIdAdded(persistenceId);
         foreach (var subscriber in _allPersistenceIdSubscribers)
             subscriber.Tell(added);
     }
 }