public ConfigurationDTO(ClaimsPrincipal user, Jar jar, string projectName) { this.user = user; box = Box.Box.Mistranslate(jar); pandora = new Pandora(box); SecurityAccess = GetSecurityAccess(); ApplicationName = jar.Name; ProjectName = projectName; Defaults = GetDefaults(); Clusters = GetAllClusters(); Machines = new List <MachineDTO>(); foreach (var cluster in Clusters) { var machines = GetAllMachines(cluster.Cluster.Name); Machines.AddRange(machines); } }
public ConfigurationDTO(ClaimsPrincipal user, Jar jar, string projectName) { this.user = user; box = Box.Box.Mistranslate(jar); pandora = new Pandora(box); SecurityAccess = GetSecurityAccess(); ApplicationName = jar.Name; ProjectName = projectName; Defaults = GetDefaults(); Clusters = GetAllClusters(); Machines = new List<MachineDTO>(); foreach (var cluster in Clusters) { var machines = GetAllMachines(cluster.Cluster.Name); Machines.AddRange(machines); } }