コード例 #1
0
 public static List <CloudResource> GetSandboxResourceGroupsForStudy(Study study)
 {
     return(study.Sandboxes
            .Where(sb => !SoftDeleteUtil.IsMarkedAsDeleted(sb))
            .Select(sb => GetSandboxResourceGroupEntry(sb.Resources))
            .Where(r => !r.Deleted)
            .ToList());
 }
コード例 #2
0
 public static List <CloudResource> GetDatasetResourceGroupsForStudy(Study study)
 {
     return(study.Resources
            .Where(r => !SoftDeleteUtil.IsMarkedAsDeleted(r) && r.ResourceType == AzureResourceType.ResourceGroup && r.Purpose == CloudResourcePurpose.StudySpecificDatasetContainer)
            .ToList());
 }