private ITemplateAction ProcessTemplate(string templateActionName)
        {
            switch (templateActionName)
            {
            case "TemplateEmbedded":
            {
                return(new LoadEmbeddedTemplateAction(TemplateName.ToString()));
            }

            case "TemplateFile":
            {
                return(new LoadFileTemplateAction(TemplateFilepath));
            }

            case "TemplateString":
            {
                return(new LoadStringTemplateAction(TemplateString));
            }

            default:
                throw new ArgumentException("Invalid ParameterSet Name");
            }
        }
Example #2
0
 public static Template GetTemplate(TemplateName name)
 {
     Log.Info(nameof(GetTemplate), name.ToString());
     return(Vorlagen[name]);
 }
Example #3
0
 public ITemplateIdentity Copy()
 {
     return(new TemplateIdentity(TemplateName?.ToString(),
                                 TemplateId, // Guid is a value-type struct
                                 TemplateVersion?.ToString()));
 }