Ejemplo n.º 1
0
 internal TaxonomyNode(TaxonomyTree tree, TaxonEntity entity)
 {
     this.tree = tree;
     this.entity = entity;
     this.IsDetached = false;
     //tree.log.Debug("Node init:" + Name);
 }
 public MetricsContextExtension(MetricsService metricsService,
                                TaxonomyTree tree, NHibernateBoxTransformation <MetricsEntryBoxMap, MetricsEntryEntity> entryTransformation)
 {
     _metricsService          = metricsService;
     _tree                    = tree;
     this.entryTransformation = entryTransformation;
 }
 public TreeContextExtension(TaxonomyTree tree, RelationRepository relationRepo,
     NHibernateBoxTransformation<RelationBoxMap, RelationEntity> relationTransformer)
 {
     _tree = tree;
     _relationRepo = relationRepo;
     this.relationTransformer = relationTransformer;
 }
Ejemplo n.º 4
0
 public TreeContextExtension(TaxonomyTree tree, RelationRepository relationRepo,
                             NHibernateBoxTransformation <RelationBoxMap, RelationEntity> relationTransformer)
 {
     _tree                    = tree;
     _relationRepo            = relationRepo;
     this.relationTransformer = relationTransformer;
 }
 public MetricsContextExtension(MetricsService metricsService,
     TaxonomyTree tree, NHibernateBoxTransformation<MetricsEntryBoxMap, MetricsEntryEntity> entryTransformation)
 {
     _metricsService = metricsService;
     _tree = tree;
     this.entryTransformation = entryTransformation;
 }
 public SettingsRepository(
     IDbContext context,
     TaxonomyTree taxonomyTree,
     RelationService relationService,
     ILog log)
     : base(context, log, relationService)
 {
     settingsRelation     = taxonomyTree.GetOrCreatePath(SETTINGS_PATH, "SettingsRepository relations");
     this.relationService = relationService;
 }
Ejemplo n.º 7
0
        public CommonsService(ILog log, IComponentContext context,
                              TaxonomyTree tree, RelationRepository relRepo)
        {
            this.context = context;
            this.log     = log;
            _tree        = tree;
            _relRepo     = relRepo;

            SetupTimer();
        }
        public NHibernateBoxTransformation(IDbContext context, RepositoryFinder repoFinder, ILog log,
                                           TaxonomyTree tree, BoxImporterStrategy strategy)
        {
            _context    = context;
            _repoFinder = repoFinder;
            _log        = log;
            _tree       = tree;

            ImportStrategy     = strategy;
            FindExistingEntity = new Func <IRepository <TE>, TE, TE>((r, e) => r.Get(e.Id));
        }
Ejemplo n.º 9
0
        public StateRepository(
            IDbContext context,
            TaxonomyTree taxonomyTree,
            RelationService relationService,
            ILog log)
            : base(context, log, relationService)
        {
            triggerRelation = taxonomyTree.GetOrCreatePath(TRIGGER_PATH, "StateRepository trigger relations");

            this.taxonomyTree    = taxonomyTree;
            this.relationService = relationService;
        }
        public StatefullBrowsingSessionWrapper(
            StateService stateService,
            TaxonomyTree tree)
        {
            StoringFlags    = StateStoringFlags.Get;
            StateCaching    = StateCaching.LikeBrowser;
            StoringDuration = TimeSpan.FromHours(3); //default storing duration 3 hours //one day

            this.stateService = stateService;
            this.tree         = tree;

            RootBrowsingStateTriggers =
                tree.GetOrCreatePath(STATE_TRIGGER_PATH, "Trigger to flush all Browsing cache");
        }
Ejemplo n.º 11
0
        public MetricsService(
            MetricsRepository metricsRepo,
            MetricsEntryRepository metricsEntryRepo,
            RelationService relationService,
            TaxonomyTree taxonomyTree,
            ILog log)
        {
            this.metricsRepo = metricsRepo;
            this.metricsEntryRepo = metricsEntryRepo;
            this.relationService = relationService;
            this.log = log;

            relationNode = taxonomyTree.GetOrCreatePath(RELATIONS_PATH, "MetricsRepository relations");
        }
        public HttpProxyDecoratorBase(
            HttpProxyRepository repo,
            TaxonomyTree tree,
            StateService stateService,
            ILog log)
        {
            _repo         = repo;
            _tree         = tree;
            _stateService = stateService;
            _log          = log;

            StoringDuration = TimeSpan.FromHours(3); //default storing duration 3 hours //one day
            RootDescriminatorStateTriggers =
                tree.GetOrCreatePath(STATE_TRIGGER_PATH, "Trigger to flush all Browsing cache");
        }
        public HttpProxyDecoratorBase(
            HttpProxyRepository repo, 
            TaxonomyTree tree,
            StateService stateService, 
            ILog log)
        {
            _repo = repo;
            _tree = tree;
            _stateService = stateService;
            _log = log;

            StoringDuration = TimeSpan.FromHours(3); //default storing duration 3 hours //one day
            RootDescriminatorStateTriggers =
                tree.GetOrCreatePath(STATE_TRIGGER_PATH, "Trigger to flush all Browsing cache");
        }
 public CoreContextExtensions(TaxonomyTree tree)
 {
     _tree = tree;
 }
 public ParallelHttpProxyDecorator(HttpProxyRepository repo, TaxonomyTree tree, StateService stateService, ILog log) : base(repo, tree, stateService, log)
 {
     proxySwitcher = new ParallelHttpProxyBrowsing(this);
 }
 public CoreContextExtensions(TaxonomyTree tree)
 {
     _tree = tree;
 }
 public ParallelHttpProxyDecorator(HttpProxyRepository repo, TaxonomyTree tree, StateService stateService, ILog log) : base(repo, tree, stateService, log)
 {
     proxySwitcher = new ParallelHttpProxyBrowsing(this);
 }
 public HttpProxyDecorator(HttpProxyRepository repo, TaxonomyTree tree, StateService stateService, ILog log) : base(repo, tree, stateService, log)
 {
     Attempts = 0;
 }
 public MetricsHealthTrackingService(MetricsService metrixSvc, TaxonomyTree tree)
 {
     this.metrixSvc = metrixSvc;
     this.tree = tree;
     tree.GetOrCreatePath(TAXON_HEALTH_ROOT, "Root for health metrices");
 }
 public MetricsHealthTrackingService(MetricsService metrixSvc, TaxonomyTree tree)
 {
     this.metrixSvc = metrixSvc;
     this.tree      = tree;
     tree.GetOrCreatePath(TAXON_HEALTH_ROOT, "Root for health metrices");
 }
 public HttpProxyDecorator(HttpProxyRepository repo, TaxonomyTree tree, StateService stateService, ILog log) : base(repo, tree, stateService, log)
 {
     Attempts = 0;
 }
 public NHibernateBoxTransformation(IDbContext context, RepositoryFinder repoFinder, ILog log,
                                    TaxonomyTree tree)
     : this(context, repoFinder, log, tree, BoxImporterStrategy.ErrorExisting)
 {
 }