/// <summary>
        /// Is this build alreadiy fully populated.
        /// </summary>
        public async Task <bool> IsPopulated(BuildId buildId, CancellationToken cancellationToken = default(CancellationToken))
        {
            var key    = BuildResultEntity.GetExactEntityKey(buildId);
            var entity = await AzureUtil.QueryAsync <DynamicTableEntity>(_buildResultExactTable, key, cancellationToken);

            return(entity != null);
        }
Exemple #2
0
        public BuildResultEntity CopyDate()
        {
            var entity = new BuildResultEntity(this);

            entity.SetEntityKey(GetDateEntityKey(BuildDateTimeOffset, BuildId));
            return(entity);
        }
Exemple #3
0
        public BuildResultEntity CopyExact()
        {
            var entity = new BuildResultEntity(this);

            entity.SetEntityKey(GetExactEntityKey(BuildId));
            return(entity);
        }
Exemple #4
0
 public BuildResultEntity(BuildResultEntity other) : this(
         buildId : other.BuildId,
         buildDateTime : other.BuildDateTimeOffset,
         duration : other.Duration,
         jobKind : other.JobKind,
         machineName : other.MachineName,
         classification : other.Classification,
         prInfo : other.PullRequestInfo)
 {
 }