internal void CopyConfigData(ConfigReaderModule other) { lock (thread_locker) { if (other == null) { return; } configData.Clear(); foreach (var p in other.configData) { configData[p.Key] = p.Value; } } }
public void ReloadConfigReaderModule(ConfigReaderModule reader) { var old = readerModule; if (readerModule != null) { UnloadModule(readerModule); readerModule = null; } if (readerModule == null) { readerModule = AddModule(reader); readerModule.SetSerializer(serializer); readerModule.CopyConfigData(old); } }
protected override void OnShutdown() { UnloadModule(readerModule); readerModule = null; overrideModule = null; }
protected override void OnBoot() { readerModule = AddModule <ConfigReaderModule>(); readerModule.SetSerializer(serializer); }