Exemplo n.º 1
0
 public AttributesSettingsProvider(
     AttributesSettingsOptionManager optionManager,
     IEnumerable <IAttributePuller> pullers,
     IEnumerable <IAttributeIndexer> indexers
     ) : base(optionManager)
 {
     this.pullers  = pullers;
     this.indexers = indexers;
 }
Exemplo n.º 2
0
 public AttributesSettingsProvider(
     AttributesSettingsOptionManager optionManager,
     EntityRepository entityRepository,
     AttributeRepository attributeRepository,
     ConnectionRepository connectionRepository,
     IndexerManager indexerManager,
     IEnumerable <IAttributePuller> pullers,
     IEnumerable <IAttributeIndexer> indexers,
     ResolverFactory resolverFactory
     ) : base(optionManager)
 {
     this.entityRepository     = entityRepository;
     this.attributeRepository  = attributeRepository;
     this.connectionRepository = connectionRepository;
     this.indexerManager       = indexerManager;
     this.pullers         = pullers;
     this.indexers        = indexers;
     this.resolverFactory = resolverFactory;
     this.indexerManager.OnReport(s => this.logger.Information(s));
     this.logger      = resolverFactory.Resolve <ILogger>("SyncService");
     this.errorLogger = resolverFactory.Resolve <ILogger>("Error");
 }