/// <summary> /// Replaces the existing settings with this new set. /// </summary> /// <param name="settings"></param> public void UpdateSettings(ArchiveInitializerSettings settings) { settings = settings.CloneReadonly(); settings.Validate(); using (m_lock.EnterWriteLock()) { m_settings = settings; } }
/// <summary> /// Creates a <see cref="ArchiveInitializer{TKey,TValue}"/> /// </summary> /// <param name="settings"></param> public ArchiveInitializer(ArchiveInitializerSettings settings) { m_settings = settings.CloneReadonly(); m_settings.Validate(); m_lock = new ReaderWriterLockEasy(); }