Пример #1
0
 public FeatureDataManager(CacheServer cacheServer)
 {
     _autoStartDelay                   = ServiceConfiguration.InitialLoggingDelayAtStartup;
     _cacheServer                      = cacheServer;
     _accumulatedDataFromCaches        = new Dictionary <string, Dictionary <string, Common.FeatureUsageData.Feature> >();
     _featureConfigManager             = new FeatureConfigManager();
     _installTime                      = Directory.GetCreationTime(AppUtil.InstallDir);
     ProfileUsageCollector.CacheServer = cacheServer;
 }
Пример #2
0
        public void StoptGatheringData()
        {
            if (_dataCollector != null && _dataCollector.IsAlive)
            {
#if !NETCORE
                _dataCollector.Abort();
#else
                _dataCollector.Interrupt();
#endif
            }

            _featureConfigManager      = null;
            _cacheServer               = null;
            _accumulatedDataFromCaches = null;
            _cachingProfile            = null;
        }