public static void InitializeConfigurations()
        {
            //System Configuration
            IBKeyStore oStore = new IBKeyStore();

            SysKey = oStore.GetMasterKey(SystemKeyPath);
            SystemConfiguration.Initialize(SysKey, ConfigPath);

            ibccSettings = new IBConfigurationControl();
            ibccSettings.SetConfigurationFile(ConfigPath, SysKey);
            ibccSettings.OnSaveEvent += ibccSettings_OnSaveEvent;
        }
Example #2
0
        public static void LoggerInitialize()
        {
            //System Configuration
            IBKeyStore oStore = new IBKeyStore();

            SysKey = oStore.GetMasterKey(MainConfigurationPaths.SystemKeyPath);
            SystemConfiguration.Initialize(SysKey, MainConfigurationPaths.ConfigPath);

            //Log Configuration
            IBKeyStore oLogStore = new IBKeyStore();

            LogKey = oLogStore.GetMasterKey(MainConfigurationPaths.LogKeyPath);
            IBLogInstanceProperties oLogInstanceProp = new IBLogInstanceProperties(LogKey, MainConfigurationPaths.LogSysConfigPath);
            IBLogInstance           log = new IBLogInstance("001", oLogInstanceProp);

            IBLogger.AddInstance(log);
            IBLogger.Initialize(oLogInstanceProp);
        }