public static ITeamProjects CreateTeamProjectMananger(Uri tfsCollectionUri, ITfsCredentials tfsCredentials = null) { ITeamProjects result; if (TeamProjectManagers.ContainsKey(tfsCollectionUri)) { result = TeamProjectManagers[tfsCollectionUri]; } else { result = new TeamProjects(tfsCollectionUri, tfsCredentials); TeamProjectManagers.AddOrUpdate(tfsCollectionUri, result, (key, oldValue) => result); } return result; }
public static ITeamProjects CreateTeamProjectMananger(Uri tfsCollectionUri, ITfsCredentials tfsCredentials = null) { ITeamProjects result; if (TeamProjectManagers.ContainsKey(tfsCollectionUri)) { result = TeamProjectManagers[tfsCollectionUri]; } else { result = new TeamProjects(tfsCollectionUri, tfsCredentials); TeamProjectManagers.AddOrUpdate(tfsCollectionUri, result, (key, oldValue) => result); } return(result); }