Beispiel #1
0
        internal PipelineProperty GetProperty(string pipelineId, string propertyName)
        {
            PipelinePropertyBag pipelinePropertyBag = GetPropertyBag(pipelineId);
            PipelineProperty    pipelineProperty    = pipelinePropertyBag.GetProperty(propertyName);

            return(pipelineProperty);
        }
Beispiel #2
0
        private PipelinePropertyBag GetPropertyBag(string pipelineId)
        {
            if (propertyBags == null)
            {
                propertyBags = new Dictionary <string, PipelinePropertyBag>(); // PipelineId to Job Property Bag
            }

            PipelinePropertyBag pipelinePropertyBag;

            if (!propertyBags.TryGetValue(pipelineId, out pipelinePropertyBag))
            {
                pipelinePropertyBag = new PipelinePropertyBag();
                propertyBags.Add(pipelineId, pipelinePropertyBag);
            }
            return(pipelinePropertyBag);
        }
        private PipelinePropertyBag GetPropertyBag(string pipelineId)
        {
            if (propertyBags == null)
            {
                propertyBags = new Dictionary<string, PipelinePropertyBag>(); // PipelineId to Job Property Bag
            }

            PipelinePropertyBag pipelinePropertyBag;
            if (!propertyBags.TryGetValue(pipelineId, out pipelinePropertyBag))
            {
                pipelinePropertyBag = new PipelinePropertyBag();
                propertyBags.Add(pipelineId, pipelinePropertyBag);
            }
            return pipelinePropertyBag;
        }