コード例 #1
0
ファイル: AzureDevOps.razor.cs プロジェクト: funkysi1701/Blog
        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);
                    }
                }
            }
        }
コード例 #2
0
 public bool HasGenesisRelease()
 {
     return(Releases.FirstOrDefault()?.IsGenesis ?? false);
 }