private ExcelTranslationCacheSingleton(
            IExcelTranslationService ts,
            TimeSpan sleepTime)
        {
            _ts          = ts;
            _sleepTime   = sleepTime;
            Translations = ts.ReadTranslations();
            var worker = new Thread(Updater)
            {
                Priority = ThreadPriority.Lowest
            };

            worker.Start();
        }
 public static IExcelTranslationCache GetInstance(
     IExcelTranslationService ts,
     TimeSpan sleepTime)
 {
     if (_instance != null)
     {
         return(_instance);
     }
     lock (Locker)
     {
         _instance = new ExcelTranslationCacheSingleton(ts, sleepTime);
         // ReSharper disable once NonAtomicCompoundOperator
         return(_instance);
     }
 }