NetBuild.Tfs.TfsClient.TfsClient C# (CSharp) Method

TfsClient() public method

public TfsClient ( string url ) : System
url string
return System
		public TfsClient(string url)
		{
			if (String.IsNullOrEmpty(url))
				throw new ArgumentNullException(nameof(url));

			var credentials = new TfsClientCredentials();
			var collection = new TfsTeamProjectCollection(new Uri(url), credentials);

			m_server = collection.GetService<VersionControlServer>();
		}