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; }
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); }