예제 #1
0
        /// <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);
        }
예제 #2
0
        public BuildResultEntity CopyDate()
        {
            var entity = new BuildResultEntity(this);

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

            entity.SetEntityKey(GetExactEntityKey(BuildId));
            return(entity);
        }
예제 #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)
 {
 }