示例#1
0
        private void Prebuild(IDocumentProcessor processor, HostService hostService)
        {
            var models = processor.Prebuild(hostService.Models, hostService);

            if (!object.ReferenceEquals(models, hostService.Models))
            {
                hostService.Reload(models);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
 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);
         }
     });
 }
示例#4
0
 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);
     }
 }
示例#5
0
 private void Prebuild(IDocumentProcessor processor, HostService hostService)
 {
     var models = processor.Prebuild(hostService.Models, hostService);
     if (!object.ReferenceEquals(models, hostService.Models))
     {
         hostService.Reload(models);
     }
 }
示例#6
0
 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);
                 }
             });
 }