コード例 #1
0
ファイル: ManagerContainer.cs プロジェクト: bluetsys/alchemi
 /// <summary>
 /// Reads the Manager configuration from the Alchemi.Manager.config.xml file,
 /// <br /> or gets the default configuration, if there is an error reading the file.
 /// </summary>
 public void ReadConfig()
 {
     try
     {
         Config = Configuration.GetConfiguration();
     }
     catch             //get default
     {
         Config = new Configuration();
     }
 }
コード例 #2
0
ファイル: SchedulerFactory.cs プロジェクト: bluetsys/alchemi
        /// <summary>
        /// Gets the manager's configuration object. If it fails to get the manager's configuration object then it returns null.
        /// </summary>
        /// <returns>manager's configuration object</returns>
        private Configuration GetConfiguration()
        {
            try
            {
                return(Configuration.GetConfiguration());
            }
            catch (Exception oException)
            {
                logger.Debug(string.Format("Failed to read configuration; {0}", oException));
            }

            return(null);
        }