Example #1
0
        /// <summary>
        /// Retrieves the cache descriptor containing the build scheduler state from the coordinator node
        /// </summary>
        /// <returns>true if the operation was successful</returns>
        internal bool TryGetBuildScheduleDescriptor(out PipGraphCacheDescriptor descriptor)
        {
            descriptor = null;
            if (!AttachCompletion.Result)
            {
                return(false);
            }

            descriptor = BuildStartData.CachedGraphDescriptor;
            return(true);
        }
Example #2
0
        /// <nodoc/>
        public static DistributionPipGraphCacheDescriptor ToDistributionPipGraphCacheDescriptor(this PipGraphCacheDescriptor descriptor)
        {
            if (descriptor == null)
            {
                return(null);
            }

            return(new DistributionPipGraphCacheDescriptor
            {
                Value = descriptor,
            });
        }