public string ProvideLanguageContent(string languageId) { string languageFile = Path.Combine(this.LanguagesRegistration, $"{languageId}.xml"); return(Development.ReadFileAsString(languageFile)); }
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)); } }
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); } }