Example #1
0
        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);
            }
        }
Example #2
0
 protected override void OnBoot()
 {
     readerModule = AddModule <ConfigReaderModule>();
     readerModule.SetSerializer(serializer);
 }