Example #1
0
 private void SaveOutputs(ICodeFileStorageHandler handler, IEnumerable <CodeFile> outputs)
 {
     foreach (var file in outputs)
     {
         handler.Add(file);
     }
 }
 public CodeFileEnvironmentHandler(ICodeFileStorageHandler codeFileStorageHandler, ICodeFileCompilationHandler codeFileCompilationHandler)
 {
     this.ShadowFilter       = new ShadowFilter();
     this.storageHandler     = codeFileStorageHandler;
     this.compilationHandler = codeFileCompilationHandler;
     this.compilationHandler.ShadowFilter = this.ShadowFilter;
 }
Example #3
0
 public CodeFileEnvironmentHandlerTs(
     IFileSystem fileSystem,
     ICodeFileStorageHandler codeFileStorageHandler,
     ICodeFileCompilationHandler codeFileCompilationHandler,
     IPipelineExecutionInfo pipelineExecutionInfo,
     ILogger logger)
     : base(codeFileStorageHandler, codeFileCompilationHandler)
 {
     this.fileSystem = fileSystem;
     this.tsHost     = new TsHost(30050, 30100, 5000, new TsHostLoggerAdapter(logger));
 }
Example #4
0
 public CodeGenerationPipelineLauncher(
     IWorkspaceManager initialWorkspaceManager,
     IWorkspaceManagerBase outputWorkspaceManager,
     IFileSystem fileSystem,
     ITypeLoader additionalTypeLoader             = null,
     ICodeFileStorageHandler outputStorageHandler = null,
     ILogger logger = null)
 {
     this.initialWorkspaceManager = initialWorkspaceManager;
     this.outputWorkspaceManager  = outputWorkspaceManager;
     this.fileSystem           = fileSystem;
     this.additionalTypeLoader = additionalTypeLoader;
     this.outputStorageHandler = outputStorageHandler ?? outputWorkspaceManager;
     this.logger = logger ?? new TextLogger(this.fileSystem);
 }
Example #5
0
 public CodeFileEnvironmentHandlerGlsl(
     ICodeFileStorageHandler codeFileStorageHandler,
     ICodeFileCompilationHandler codeFileCompilationHandler)
     : base(codeFileStorageHandler, codeFileCompilationHandler)
 {
 }