public override bool Execute() { try { //Log.LogMessageFromText(String.Format("PnPAppConfigReaderTask: Reading information for configuration {0}", Configuration), MessageImportance.Normal); PnPAppConfigManager appConfigManager = new PnPAppConfigManager(SQLConnectionString.Replace(""", "\""), Configuration); PnPBuildConfiguration = appConfigManager.GetConfigurationElement("PnPBuild"); PnPBranch = appConfigManager.GetConfigurationElement("PnPBranch"); return(true); } catch (Exception ex) { Log.LogErrorFromException(ex); return(false); } }
public override bool Execute() { try { Log.LogMessageFromText(String.Format("PnPAppConfigReaderTask: Reading information from {0} for configuration {1}", ConfigurationFile, Configuration), MessageImportance.Normal); PnPAppConfigManager appConfigManager = new PnPAppConfigManager(ConfigurationFile); PnPBuildConfiguration = appConfigManager.GetConfigurationElement(Configuration, "PnPBuild"); PnPBranch = appConfigManager.GetConfigurationElement(Configuration, "PnPBranch"); return(true); } catch (Exception ex) { Log.LogErrorFromException(ex); return(false); } }