protected async Task ReleaseLoad() { if (projects != null) { foreach (var proj in projects) { var rs = await relclient.GetDeploymentsAsync(proj.Name).ConfigureAwait(false); foreach (var release in rs) { var old = Releases.FirstOrDefault(x => x.Id == release.Id); var oldbr = BuildRelease.FirstOrDefault(x => x.Id == release.Id); Releases.Remove(old); BuildRelease.Remove(oldbr); release.ProjectReference = new(); release.ProjectReference.Name = proj.Name; Releases.Add(release); BuildRelease br = GetRelease(proj, release); BuildRelease.Add(br); } } } }
public bool HasGenesisRelease() { return(Releases.FirstOrDefault()?.IsGenesis ?? false); }