Exemplo n.º 1
0
        public RepoFile TryGetFile(string path)
        {
            RepoFile result = null;

            FilesByPath.TryGetValue(path, out result);
            return(result);
        }
Exemplo n.º 2
0
 public void AddFile(RepoFile repoFile)
 {
     lock (Files)
     {
         Files.Add(repoFile);
     }
 }
Exemplo n.º 3
0
        private RepoFile CreateNewProjectFile(string filePath, string logicalPath)
        {
            var file = new RepoFile(this, filePath, logicalPath);

            AddFile(file);
            return(file);
        }
Exemplo n.º 4
0
        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);
        }