protected override async void OnInitialize() { Project = await _teamServices.GetProjectAsync(ProjectId); _definitions = await _teamServices.GetDefinitionsAsync(Project); var builds = await _teamServices.GetBuildsAsync(Project); Builds.AddRange(builds.OrderByDescending(b => b.QueueTime).Select(b => new BuildViewModel(b))); }
public void Add(IBuild build, List <Build> builds) { Intervals.AddRange(CalculateMillisecondsBetweenBuilds(builds)); Builds.AddRange(builds); }