Exemplo n.º 1
0
 public RedisSplitCache(IRedisAdapter redisAdapter,
                        ISplitParser splitParser,
                        string userPrefix = null)
     : base(redisAdapter, userPrefix)
 {
     _splitParser = splitParser;
 }
Exemplo n.º 2
0
 public Evaluator(ISplitCache splitCache,
                  ISplitParser splitParser,
                  ISplitter splitter = null,
                  ISplitLogger log   = null)
 {
     _splitCache  = splitCache;
     _splitParser = splitParser;
     _splitter    = splitter ?? new Splitter();
     _log         = log ?? WrapperAdapter.GetLogger(typeof(Evaluator));
 }
        public SelfRefreshingSplitFetcher(ISplitChangeFetcher splitChangeFetcher,
                                          ISplitParser splitParser,
                                          IReadinessGatesCache gates,
                                          int interval,
                                          ISplitCache splitCache = null)
        {
            _cancelTokenSource = new CancellationTokenSource();

            _splitChangeFetcher = splitChangeFetcher;
            _splitParser        = splitParser;
            _gates      = gates;
            _interval   = interval;
            _splitCache = splitCache;
        }
Exemplo n.º 4
0
 public SelfRefreshingSplitFetcher(ISplitChangeFetcher splitChangeFetcher,
                                   ISplitParser splitParser,
                                   IStatusManager statusManager,
                                   int interval,
                                   ITasksManager taskManager,
                                   ISplitCache splitCache = null)
 {
     _splitChangeFetcher = splitChangeFetcher;
     _splitParser        = splitParser;
     _statusManager      = statusManager;
     _interval           = interval;
     _splitCache         = splitCache;
     _taskManager        = taskManager;
 }