public RepoFile TryGetFile(string path) { RepoFile result = null; FilesByPath.TryGetValue(path, out result); return(result); }
public void AddFile(RepoFile repoFile) { lock (Files) { Files.Add(repoFile); } }
private RepoFile CreateNewProjectFile(string filePath, string logicalPath) { var file = new RepoFile(this, filePath, logicalPath); AddFile(file); return(file); }
public RepoProject CreateRepoProject(string projectId, string projectDirectory, RepoFile projectFile = null) { var project = new RepoProject(projectId, this) { ProjectDirectory = projectDirectory, ProjectFile = projectFile }; if (projectFile != null) { projectFile.PrimaryProject = project; project.AddFile(projectFile); } Projects.Add(project); return(project); }