/// <summary>
 /// Creates entries for all the confidential platforms. Should be called before returning any list of all folder values.
 /// </summary>
 private static void AddConfidentialPlatforms()
 {
     if (PermittedReferences == null)
     {
         Dictionary <RestrictedFolder, RestrictedFolder[]> NewPermittedReferences = new Dictionary <RestrictedFolder, RestrictedFolder[]>();
         foreach (KeyValuePair <string, DataDrivenPlatformInfo.ConfigDataDrivenPlatformInfo> Pair in DataDrivenPlatformInfo.GetAllPlatformInfos())
         {
             if (Pair.Value.bIsConfidential)
             {
                 RestrictedFolder Folder = FindOrAddByName(Pair.Key);
                 if (Pair.Value.AdditionalRestrictedFolders != null && Pair.Value.AdditionalRestrictedFolders.Length > 0)
                 {
                     RestrictedFolder[] References = Array.ConvertAll(Pair.Value.AdditionalRestrictedFolders, x => FindOrAddByName(x));
                     NewPermittedReferences[Folder] = References;
                 }
             }
         }
         PermittedReferences = NewPermittedReferences;
     }
 }
예제 #2
0
 /// <summary>
 /// Creates entries for all the confidential platforms. Should be called before returning any list of all folder values.
 /// </summary>
 private static void AddConfidentialPlatforms()
 {
     foreach (KeyValuePair <string, DataDrivenPlatformInfo.ConfigDataDrivenPlatformInfo> Pair in DataDrivenPlatformInfo.GetAllPlatformInfos())
     {
         if (Pair.Value.bIsConfidential)
         {
             FindOrAddByName(Pair.Key);
         }
     }
 }