Example #1
0
            public void cachedId(string name, int hash)
            {
                ProjectRepository repo = new ProjectRepository();

                var file = _project.Find(name);
                var fileID = -1;
                if (file == null)
                    fileID = repo.GetFileId(name, _project.ID);
                else
                    fileID = file.ID;

                Debug.Assert(fileID >= 0);
                repo.fileCache(fileID, hash);
            }
Example #2
0
            public int cachedId(string name)
            {
                var file = _project.Find(name);
                if (file == null)
                    return 0;

                ProjectRepository repo = new ProjectRepository();
                return repo.fileCache(file.ID);
            }