protected void Init() { _fanArtSync = new KeyedAsyncReaderWriterLock <Guid>(); _fanArtCounts = new AsyncStaticTimeoutCache <string, FanArtCount>(FANART_COUNT_TIMEOUT); _maxFanArtCounts = new Dictionary <string, int>(); _settingsChangeWatcher = new SettingsChangeWatcher <FanArtSettings>(); _settingsChangeWatcher.SettingsChanged += SettingsChanged; LoadSettings(); }
protected void Init() { if (!Directory.Exists(FANART_CACHE_PATH)) { Directory.CreateDirectory(FANART_CACHE_PATH); } _fanArtSync = new KeyedAsyncReaderWriterLock <Guid>(); _fanArtCounts = new AsyncStaticTimeoutCache <string, FanArtCount>(FANART_COUNT_TIMEOUT); _maxFanArtCounts = new Dictionary <string, int>(); _settingsChangeWatcher = new SettingsChangeWatcher <FanArtSettings>(); _settingsChangeWatcher.SettingsChanged += SettingsChanged; LoadSettings(); }