Class TemplateGeneratorBase<TParameters>
Base implementation for ITemplateGenerator and ITemplateGenerator<TParameters>.
public abstract class TemplateGeneratorBase<TParameters> : ITemplateGenerator<TParameters>, ITemplateGenerator where TParameters : TemplateGeneratorParameters
  Type Parameters
TParametersThe type of parameters this generator uses.
- Inheritance
 - 
      objectTemplateGeneratorBase<TParameters>
 
- Implements
 - 
      ITemplateGenerator<TParameters>
 
Methods
IsSupportingTemplate(TemplateDescription)
Determines whether this generator is supporting the specified template
public abstract bool IsSupportingTemplate(TemplateDescription templateDescription)
  Parameters
templateDescriptionTemplateDescriptionThe template description.
Returns
- bool
 trueif this generator is supporting the specified template; otherwise,false.
PrepareForRun(TParameters)
Prepares this generator with the specified parameters.
public abstract Task<bool> PrepareForRun(TParameters parameters)
  Parameters
parametersTParametersThe parameters for the template generator.
Returns
- Task<bool>
 A task completing when the preparation is finished, with the result
Trueif the preparation was successful,falseotherwise.
Remarks
This method should be used to verify that the parameters are correct, and to ask user for additional information before running the template.
Run(TParameters)
Runs the generator with the given parameter.
public abstract bool Run(TParameters parameters)
  Parameters
parametersTParametersThe parameters for the template generator.
Returns
- bool
 Trueif the generation was successful,falseotherwise.
Remarks
This method should work in unattended mode and should not ask user for information anymore.