Exemplo n.º 1
0
 protected bool isServicedController(Resource res)
 {
     if (CacheCollectorFactory.CheckMockMode())
     {
         return(true);
     }
     return(res.Controller.Type == "UnixBaseController");
 }
Exemplo n.º 2
0
        protected bool IsServicedController(IStatelessResourceController ctr)
        {
            if (CacheCollectorFactory.CheckMockMode())
            {
                return(true);
            }

            return(!(ctr is IStatisticalCacheableController));
        }
Exemplo n.º 3
0
        public static CacheCollectorFactory GetInstance()
        {
            var mode = ConfigurationManager.AppSettings[CACHE_COLLECTOR_MOCK_MODE];

            if (_instance != null)
            {
                return _instance;
            }

            var result = _instance = string.IsNullOrEmpty(mode) ? new CacheCollectorFactory():new MockCacheCollectorFactory();

            Common.Utility.LogInfo(" Global Cache Collector Factory of type " + result.GetType() + " is created");

            return result;
        }
Exemplo n.º 4
0
        public static CacheCollectorFactory GetInstance()
        {
            var mode = ConfigurationManager.AppSettings[CACHE_COLLECTOR_MOCK_MODE];

            if (_instance != null)
            {
                return(_instance);
            }

            var result = _instance = string.IsNullOrEmpty(mode) ? new CacheCollectorFactory():new MockCacheCollectorFactory();

            Common.Utility.LogInfo(" Global Cache Collector Factory of type " + result.GetType() + " is created");

            return(result);
        }