コード例 #1
0
 public RedisSplitCache(IRedisAdapter redisAdapter,
                        ISplitParser splitParser,
                        string userPrefix = null)
     : base(redisAdapter, userPrefix)
 {
     _splitParser = splitParser;
 }
コード例 #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));
 }
コード例 #3
0
        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;
        }
コード例 #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;
 }