コード例 #1
0
        public static IProcessTemplates CreateProcessTemplateMananger(Uri tfsCollectionUri, ITfsCredentials tfsCredentials = null)
        {
            IProcessTemplates result;
            if (ProcessTemplateManagers.ContainsKey(tfsCollectionUri))
            {
                result = ProcessTemplateManagers[tfsCollectionUri];
            }
            else
            {
                result = new ProcessTemplates(tfsCollectionUri, tfsCredentials);
                ProcessTemplateManagers.AddOrUpdate(tfsCollectionUri, result, (key, oldValue) => result);
            }

            return result;
        }
コード例 #2
0
        public static IProcessTemplates CreateProcessTemplateMananger(Uri tfsCollectionUri, ITfsCredentials tfsCredentials = null)
        {
            IProcessTemplates result;

            if (ProcessTemplateManagers.ContainsKey(tfsCollectionUri))
            {
                result = ProcessTemplateManagers[tfsCollectionUri];
            }
            else
            {
                result = new ProcessTemplates(tfsCollectionUri, tfsCredentials);
                ProcessTemplateManagers.AddOrUpdate(tfsCollectionUri, result, (key, oldValue) => result);
            }

            return(result);
        }