コード例 #1
0
        public string ProvideLanguageContent(string languageId)
        {
            string languageFile =
                Path.Combine(this.LanguagesRegistration, $"{languageId}.xml");

            return(Development.ReadFileAsString(languageFile));
        }
コード例 #2
0
        public string ProvideTemplateContent(string serviceFullPath)
        {
            string templateFile =
                Path.Combine(this.TemplatesRegistration, $"{serviceFullPath}.xchtml");

            try
            {
                return(Development.ReadFileAsString(templateFile));
            }
            catch (FileNotFoundException)
            {
                throw new Exceptions.DeploymentException(string.Format(Global.SystemMessages.TEMPLATE_NOTFOUND + "!", serviceFullPath));
            }
        }
コード例 #3
0
        public string ProvideConfigurationContent()
        {
            string configurationFile =
                Path.Combine(this.TemplatesRegistration, "Configuration.xml");

            try
            {
                return(Development.ReadFileAsString(configurationFile));
            }
            catch (FileNotFoundException ex)
            {
                throw new Exceptions.DeploymentException(Global.SystemMessages.ESSENTIAL_CONFIGURATIONNOTFOUND, ex);
            }
        }