public ICollection <ComputeInfoProtocol> ListComputes(RAIComputeFilters filters = null) { ListComputesResponseProtocol res; if (filters == null) { res = this.ComputeGetAsync(null, null, null, null).Result; } else { IEnumerable <string> sizeFilters = null; if (filters.Size != null) { sizeFilters = filters.Size.Select(s => s.GetDescription()); } res = this.ComputeGetAsync(filters.Id, filters.Name, sizeFilters, filters.State).Result; } if (res == null) { return(null); } return(res.Computes); }
public ICollection <ComputeInfoProtocol> ListComputes(RAIComputeFilters filters = null) { SetConnectionOnClients(); return(CloudClient.ListComputes(filters)); }