Exemplo n.º 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);
        }
Exemplo n.º 2
0
        public BuildResultEntity CopyDate()
        {
            var entity = new BuildResultEntity(this);

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

            entity.SetEntityKey(GetExactEntityKey(BuildId));
            return(entity);
        }
Exemplo n.º 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)
 {
 }