Beispiel #1
0
 public APILogger(string cacheName, DebugAPIConfiguraions debugAPIConfigurations)
 {
     _debugAPIConfigurations = debugAPIConfigurations;
     _logToFileInterval      = 1000 * DebugAPIConfiguraions.LoggerThreadLoggingInterval;
     _cacheName           = cacheName;
     _thread              = new Thread(new ThreadStart(LogInBackground));
     _thread.IsBackground = true;
     _thread.Start();
 }
Beispiel #2
0
        public APILogger(string cacheName, DebugAPIConfiguraions debugAPIConfigurations)
        {
            _debugAPIConfigurations = debugAPIConfigurations;
            _logToFileInterval = 1000 * DebugAPIConfiguraions.LoggerThreadLoggingInterval;

            _cacheName = cacheName;
            _thread = new Thread(new ThreadStart(LogInBackground));
            _thread.IsBackground = true;
            _thread.Start();
        }
Beispiel #3
0
 public WrapperCache(Cache cache)
 {
     _webCache = cache;
     try
     {
         _debugConfigurations = new DebugAPIConfiguraions();
         _apiLogger = new APILogger(cache.CacheId, _debugConfigurations);
     }
     catch (Exception)
     { }
 }