Пример #1
0
 /// <summary>
 /// The default event handler for the FileContentGenerated event
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 protected virtual void OnFileContentGenerated(object sender, FileContentGeneratedArgs args)
 {
     _fileSystem.SaveFile(args.FilePath, args.FileContent);
 }
Пример #2
0
 private void OnOutputCreated(object sender, Gen.FileContentGeneratedArgs e)
 {
     _GeneratedOutputs[e.Type] = new GeneratedOutput(e);
 }
Пример #3
0
 /// <summary>
 /// Constructs output from <see cref="Gen.FileContentGeneratedArgs"/> produced
 /// by a <see cref="Gen.Generator"/>
 /// </summary>
 /// <param name="e"></param>
 public GeneratedOutput(Gen.FileContentGeneratedArgs e)
 {
     Path         = e.FilePath;
     Content      = e.FileContent;
     GeneratedFor = e.Type;
 }