Quantcast
Channel: Team Foundation Server - General forum
Viewing all articles
Browse latest Browse all 6687

TfsTeamProjectCollection vs TfsTeamProjectCollectionFactory

$
0
0
// I can use...
var myObject = new TfsTeamProjectCollection(tfsUri);

// or this...
var myObject = 
TfsTeamProjectCollectionFactory.GetTeamProjectCollection(tfsUri);


// Then..
var tcmService = myObject.GetService<ITestManagementService>();

var teamProject = tcmService.GetTeamProject(_projectCollectionName);

Can someone please explain the difference between the two classes in reference to establishing a connection to TFS?

Seems like I can use both methods so which is best approach?  Maybe I just don't know what factory means.


-7


Viewing all articles
Browse latest Browse all 6687

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>