Пример #1
0
        public List <ImportEntry> EntriesForCaller(FileIdentity caller)
        {
            var entries = new List <ImportEntry>();

            if (!_callerIndex.TryFind(caller, out var ids))
            {
                return(entries);
            }
            foreach (int id in ids)
            {
                entries.Add(_entries[id]);
            }
            return(entries);
        }
Пример #2
0
        public List <ExportEntry> EntriesForProvider(FileIdentity providerIdentity)
        {
            var entries = new List <ExportEntry>();

            if (!_providerIndex.TryFind(providerIdentity, out var ids))
            {
                return(entries);
            }
            foreach (int id in ids)
            {
                entries.Add(_entries[id]);
            }
            return(entries);
        }
Пример #3
0
 public FilePath(string fullName, FileIdentity identity)
 {
     FullName = fullName;
     Identity = identity;
 }
Пример #4
0
 public FilePath(string fullName)
 {
     FullName = fullName;
     Identity = FileIdentity.ComputeFromFile(fullName);
 }