private void Prebuild(IDocumentProcessor processor, HostService hostService) { var models = processor.Prebuild(hostService.Models, hostService); if (!object.ReferenceEquals(models, hostService.Models)) { hostService.Reload(models); } }
private void Postbuild(IDocumentProcessor processor, HostService hostService) { var models = processor.Postbuild(hostService.Models, hostService); if (!object.ReferenceEquals(models, hostService.Models)) { Logger.LogVerbose($"Plug-in {processor.Name}: Reloading models..."); hostService.Reload(models); } }
private void Postbuild(IDocumentProcessor processor, HostService hostService) { RunBuildSteps( processor.BuildSteps, buildStep => { Logger.LogVerbose($"Plug-in {processor.Name}, build step {buildStep.Name}: Postprocessing..."); var models = buildStep.Postbuild(hostService.Models, hostService); if (!object.ReferenceEquals(models, hostService.Models)) { Logger.LogVerbose($"Plug-in {processor.Name}, build step {buildStep.Name}: Reloading models..."); hostService.Reload(models); } }); }