public PipelineDefinitionWrapper(PipelineDefinitionData <T> data, Type definitionType)
 {
     TargetFile     = data.TargetFile;
     Pipeline       = data.Pipeline;
     TargetPathType = data.PathType;
     Header         = data.Header ?? SharplinerPublisher.GetDefaultHeader(definitionType);
 }
Exemplo n.º 2
0
 public TemplateDefinitionWrapper(
     TemplateDefinitionData <T> data,
     string yamlMemberName,
     Type definitionType,
     IReadOnlyCollection <IDefinitionValidation> validations)
 {
     TargetFile     = data.TargetFile;
     Definition     = data.Definition;
     TargetPathType = data.PathType;
     Parameters     = data.Parameters ?? new List <TemplateParameter>();
     _header        = data.Header ?? SharplinerPublisher.GetDefaultHeader(definitionType);
     YamlProperty   = yamlMemberName;
     Validations    = validations;
 }