Beispiel #1
0
 private void CreateImportNodeIfRequired(string library, string hashKey = null)
 {
     if (null == hashKey)
     {
         string libraryPath = string.Empty;
         if (TryGetImportLibraryPath(library, out libraryPath, out hashKey))
         {
             library = libraryPath;
         }
     }
     if (!importNodesMapping.ContainsKey(hashKey))
     {
         importNodesMapping.Add(hashKey, ++runningUID);
     }
     gc.CreateImportNode(importNodesMapping[hashKey], library);
 }
 private void CreateImportNodeIfRequired(string library, string hashKey = null)
 {
     if (null == hashKey)
     {
         string libraryPath = string.Empty;
         if (GraphUtilities.TryGetImportLibraryPath(library, out libraryPath, out hashKey))
         {
             library = libraryPath;
         }
     }
     if (!importNodesMapping.ContainsKey(hashKey))
     {
         importNodesMapping.Add(hashKey, GraphUtilities.GenerateUID());
     }
     gc.CreateImportNode(importNodesMapping[hashKey], library);
 }