Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        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);
        }