Пример #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);
            }
        }