private void ClearInWorkspace(IWorkspaceManagerBase workspace)
 {
     foreach (var location in workspace.CodeFileLocations)
     {
         if (location.DocumentPath.ProjectName == this.projectName && location.DocumentPath.ProjectFolders.SequenceEqual(this.pathParts))
         {
             workspace.RemoveCodeFile(location.DocumentPath);
         }
     }
 }
 public CodeStreamProviderBuilder(IPipelineEnvironment pipelineEnvironment,
                                  IWorkspaceManagerBase workspaceManager,
                                  IFileSystem fileSystem,
                                  string basePath)
 {
     this.pipelineEnvironment = pipelineEnvironment;
     this.workspaceManager    = workspaceManager;
     this.fileSystem          = fileSystem;
     this.basePath            = basePath;
 }
Ejemplo n.º 3
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);
 }
 public PipelineWorkspaceManagersWrapper(IWorkspaceManager processingWorkspace, IWorkspaceManagerBase outputWorkspace)
 {
     this.ProcessingWorkspace = processingWorkspace;
     this.OutputWorkspace     = outputWorkspace;
 }
Ejemplo n.º 5
0
 public WorkspaceLocationSelector(IWorkspaceManagerBase workspaceManager, ICodeFileLocationFilter filter = null)
 {
     this.workspaceManager = workspaceManager;
     this.filter           = filter;
 }