コード例 #1
0
ファイル: UpdateManager.cs プロジェクト: Zhevranacci/OCTGN
        internal UpdateManager()
        {
            Log.Info("Loading config values");

            var ass = Assembly.GetEntryAssembly();
            var execonfig = ConfigurationManager.OpenExeConfiguration(ass.Location);
            Config = (execonfig.GetSection("UpdateManagerConfig") as UpdateManagerConfig)
                         ?? new UpdateManagerConfig();
            Log.Info("Setting Update Frequency: " + Config.UpdateFrequency);
            Log.Info("Setting Update Feed: " + Config.UpdateFeed);
        }
コード例 #2
0
ファイル: UpdateManager.cs プロジェクト: clavalle/OCTGN
        internal UpdateManager()
        {
            Log.Info("Loading config values");

            var ass       = Assembly.GetEntryAssembly();
            var execonfig = ConfigurationManager.OpenExeConfiguration(ass.Location);

            Config = (execonfig.GetSection("UpdateManagerConfig") as UpdateManagerConfig)
                     ?? new UpdateManagerConfig();
            Log.Info("Setting Update Frequency: " + Config.UpdateFrequency);
            Log.Info("Setting Update Feed: " + Config.UpdateFeed);
        }