public void Run(SolutionEventContext context) { context = _modelManager.Process(context); context = _generatorRegistry.Process(context); context = _pipelineEngine.Process(context); _fileService.Process(context); }
public SolutionEventContext Process(SolutionEventContext context) { foreach (var projection in context.Projections) { var outputFiles = projection.Output; foreach (var outputFile in projection.Output.OutputFiles) { var fullPath = outputFile.OutputPath; if (!Path.IsPathRooted(fullPath)) { var root = projection.Solution.GetParameter("project-root"); if (!string.IsNullOrEmpty(root)) { fullPath = Path.Combine(root, outputFile.OutputPath); } } PerformWrite(fullPath, outputFile.Text); } } return(context); }
public SolutionEventContext(SolutionEventContext previous, IEnumerable <ProjectionContext> projections) { Solution = previous.Solution ?? throw new ArgumentNullException(nameof(previous)); Projections = projections; }
public SolutionEventContext(SolutionEventContext previous) : this(previous, Enumerable.Empty <ProjectionContext>()) { }