public EntityRepositoryObserver(EntityRepository repo, IEntityMatcher matcher, EntityCollectionEventType eventType) { _collectedEntities = new HashSet <Entity>(EntityEqualityComparer.comparer); _collection = repo.GetCollection(matcher); _eventType = eventType; Activate(); }
public ReactiveSubSystemSpy(IEntityMatcher matcher, EntityCollectionEventType eventType) { _matcher = matcher; _eventType = eventType; }
public static EntityRepositoryObserver CreateObserver(this EntityRepository repo, IEntityMatcher matcher, EntityCollectionEventType eventType = EntityCollectionEventType.OnEntityAdded) { return(new EntityRepositoryObserver(repo, matcher, eventType)); }