示例#1
0
文件: Deployer.cs 项目: vipin0101/PnP
        // ===========================================================================================================
        /// <summary>
        /// Deserializes the sequences.xml file and stores a <b>SequencesConfiguration</b> object
        /// </summary>
        /// <returns>A <b>SequencesConfiguration</b> object</returns>
        // ===========================================================================================================
        private void LoadSequencesConfiguration()
        {
            // --------------------------------------------------
            // Validates the deployer's sequences file
            // --------------------------------------------------
            string sequencesFilePath = Path.Combine(this.WorkingDirectory, ConfigurationManager.AppSettings[APP_SETTING_SEQUENCES_FILE]);

            ValidateSequencesFile(sequencesFilePath);

            // --------------------------------------------------
            // Deserializes the Sequences.xml file
            // --------------------------------------------------
            this.SequencesConfig = XmlUtility.DeserializeXmlFile <SequencesConfiguration>(sequencesFilePath);
        }
示例#2
0
        // ===========================================================================================================
        /// <summary>
        /// Deserializes the sequences.xml file and stores a <b>SequencesConfiguration</b> object
        /// </summary>
        /// <returns>A <b>SequencesConfiguration</b> object</returns>
        // ===========================================================================================================
        private void LoadSequencesConfiguration()
        {
            // --------------------------------------------------
            // Validates the deployer's sequences file
            // --------------------------------------------------
            string sequencesFilePath = Path.Combine(this.WorkingDirectory, ConfigurationManager.AppSettings[APP_SETTING_SEQUENCES_FILE]);
            ValidateSequencesFile(sequencesFilePath);

            // --------------------------------------------------
            // Deserializes the Sequences.xml file
            // --------------------------------------------------
            this.SequencesConfig = XmlUtility.DeserializeXmlFile<SequencesConfiguration>(sequencesFilePath);
        }