Beispiel #1
0
        private void initializeTfsClient()
        {
            TfsTeamProjectCollection tfsServer = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(ConfigurationService.ServerUrl));

            if (!TfsUtil.IsTfs2010Server(tfsServer))
            {
                throw new MigrationException(string.Format("The target server {0} is not a TFS2010 server", ConfigurationService.ServerUrl));
            }
            m_tfsClient = (VersionControlServer)tfsServer.GetService(typeof(VersionControlServer));
            m_analysisServiceContainer.AddService(typeof(VersionControlServer), m_tfsClient);
        }
Beispiel #2
0
        private void initializeTfsClient()
        {
            TfsTeamProjectCollection tfsServer = TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(ConfigurationService.ServerUrl));

            if (!TfsUtil.IsTfs2010Server(tfsServer))
            {
                throw new MigrationException(string.Format("The target server {0} is not a TFS2010 server", ConfigurationService.ServerUrl));
            }

            tfsServer.EnsureAuthenticated();
            TraceManager.TraceInformation("Authenticated User for Uri {0} is '{1}'", tfsServer.Uri, tfsServer.AuthorizedIdentity.DisplayName);

            m_tfsClient = (VersionControlServer)tfsServer.GetService(typeof(VersionControlServer));
            m_analysisServiceContainer.AddService(typeof(VersionControlServer), m_tfsClient);
        }