Exemplo n.º 1
0
 private HashSet <ReferenceItem> GetReferenceReportedByNoLock(string reportedBy)
 {
     if (!_indexOnReferenceReportedBy.TryGetValue(reportedBy, out HashSet <ReferenceItem> indice))
     {
         return(new HashSet <ReferenceItem>());
     }
     return(indice);
 }
Exemplo n.º 2
0
        private HashSet <DependencyItem> GetDependencyFromNoLock(string from)
        {
            HashSet <DependencyItem> indice;

            if (!_indexOnFrom.TryGetValue(from, out indice))
            {
                return(new HashSet <DependencyItem>());
            }
            return(indice);
        }
Exemplo n.º 3
0
        private HashSet <DependencyItem> GetDependencyReportedByNoLock(string reportedBy)
        {
            HashSet <DependencyItem> indice;

            if (!_indexOnReportedBy.TryGetValue(reportedBy, out indice))
            {
                return(new HashSet <DependencyItem>());
            }
            return(indice);
        }
Exemplo n.º 4
0
 private HashSet <DependencyItem> GetDependencyToNoLock(string to)
 {
     if (!_isResolved)
     {
         throw new InvalidOperationException($"Dependency graph isn't resolved, cannot call the method.");
     }
     if (!_indexOnTo.TryGetValue(to, out HashSet <DependencyItem> indice))
     {
         return(new HashSet <DependencyItem>());
     }
     return(indice);
 }
Exemplo n.º 5
0
        private HashSet <DependencyItem> GetDependencyFromNoLock(string from)
        {
            if (!_isResolved)
            {
                throw new InvalidOperationException($"Dependency graph isn't resolved, cannot call the method.");
            }
            HashSet <DependencyItem> indice;

            if (!_indexOnFrom.TryGetValue(from, out indice))
            {
                return(new HashSet <DependencyItem>());
            }
            return(indice);
        }