Ejemplo n.º 1
0
        public FakeController(MongoConfigConditStrategy configConditsStrategy)
        {
            _configConditsStrategy = configConditsStrategy;

            _conditionDefined = new MongoStrategyParams {
                Database = "Condition", Collection = "Defined"
            };
        }
Ejemplo n.º 2
0
        public ConditionController(IMongoClient mongoClient, MongoTargetConfigConditStrategy configConditStrategy, MongoConfigConditStrategy configConditsStrategy)
        {
            _mongoClient           = mongoClient;
            _configConditStrategy  = configConditStrategy;
            _configConditsStrategy = configConditsStrategy;

            _conditionDefined = new MongoStrategyParams {
                Database = "Condition", Collection = "Defined"
            };
        }
Ejemplo n.º 3
0
        public HomeController(VisitorFactory visitorBuilderFactory, IMapper mapper, MongoComponentStrategy mongoComponentStrategy, RedisComponentStrategy redisComponentStrategy, MongoConfigConditStrategy mongoConfigConditsStrategy, RedisConfigConditStrategy redisConfigConditStrategy, MongoComponentHistoryStrategy componentHistoryStrategy, MongoConditionHistoryStrategy conditionHistoryStrategy)
        {
            _visitorFactory             = visitorBuilderFactory;
            _mapper                     = mapper;
            _mongoComponentStrategy     = mongoComponentStrategy;
            _redisComponentStrategy     = redisComponentStrategy;
            _mongoConfigConditsStrategy = mongoConfigConditsStrategy;
            _redisConfigConditsStrategy = redisConfigConditStrategy;
            _componentHistoryStrategy   = componentHistoryStrategy;
            _conditionHistoryStrategy   = conditionHistoryStrategy;

            _componentHome = new MongoStrategyParams {
                Database = "Component", Collection = "Home"
            };
            _conditionDefined = new MongoStrategyParams {
                Database = "Condition", Collection = "Defined"
            };
            _componentHistoryHomeUndo = new MongoStrategyParams {
                Database = "ComponentHistory", Collection = "HomeUndo", StackSize = 10
            };
            _componentHistoryHomeRedo = new MongoStrategyParams {
                Database = "ComponentHistory", Collection = "HomeRedo", StackSize = 10
            };
            _conditionHistoryHomeUndo = new MongoStrategyParams {
                Database = "ConditionHistory", Collection = "DefinedUndo", StackSize = 10
            };
            _conditionHistoryHomeRedo = new MongoStrategyParams {
                Database = "ConditionHistory", Collection = "DefinedRedo", StackSize = 10
            };
            _cacheHome = new RedisStrategyParams {
                Cachekey = "Home"
            };
            _cacheCondit = new RedisStrategyParams {
                Cachekey = "DefinedCondition"
            };
        }