/// <summary> /// Creates instance of entity extractor. /// </summary> protected internal SimpleEntityExtractor( [NotNull] IReadOnlyCollection <DiscoverRule <TSelector, TEntity> > registrations, EntityExtractorDiscoverRuleApplyBehavior behavior = EntityExtractorDiscoverRuleApplyBehavior.OnlyFirstAcceptedRegistration ) { _registrations = registrations; _behavior = behavior; }
/// <summary> /// Sets behaviour for entity extractor. /// </summary> /// <param name="behavior">Default behvaiour for entity discovering.</param> /// <returns>Passed builder with added configuration.</returns> public EntityExtractorBuilder <TSelector, TEntity> SetBehaviour(EntityExtractorDiscoverRuleApplyBehavior behavior) { _behavior = behavior; return(this); }