vendredi 6 juin 2014

Getting JobService from Team foundation Server Object Model


Vote count:

0




I want to use the server object model of TFS to schedule new job, however i got stuck with the JobService returning as null when i execute the following code



var tfsConfigServerUri = new Uri(String.Format("http://localhost:8080/tfs"));
var tfsConfigServer = TfsConfigurationServerFactory.GetConfigurationServer(tfsConfigServerUri);
var jobService = tfsConfigServer.GetService<Microsoft.TeamFoundation.Framework.Server.TeamFoundationJobService>();


JobService is always null, so how do i get the jobservice and use it to schedule for a job ?



asked 1 min ago

Stacker

2,596





Aucun commentaire:

Enregistrer un commentaire