Beispiel #1
0
 /// <summary>
 /// Populates the server url, project, and team
 /// - does not populate LastUsage, which is automatically
 /// set to a very early date (1/1/1900)
 /// </summary>
 /// <param name="serverUrl">Uri of the server</param>
 /// <param name="project">Identifies the project--null is a valid value</param>
 /// <param name="team">Identifies the team--null is a valid value</param>
 public ConnectionInfo(Uri serverUrl, TeamProject project, AdoTeam team)
 {
     ServerUri = serverUrl;
     if (project != null)
     {
         TeamProject typedProject = project as TeamProject;
         Project = typedProject ?? new TeamProject(project);
     }
     if (team != null)
     {
         AdoTeam typedTeam = team as AdoTeam;
         Team = typedTeam ?? new AdoTeam(team);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Populates the server url, project, and team
 /// - does not populate LastUsage, which is automatically
 /// set to a very early date (1/1/1900)
 /// </summary>
 /// <param name="serverUrl">Uri of the server</param>
 /// <param name="project">Identifies the project--null is a valid value</param>
 /// <param name="team">Identifies the team--null is a valid value</param>
 public ConnectionInfo(Uri serverUrl, TeamProject project, AdoTeam team)
 {
     ServerUri = serverUrl;
     Project   = project;
     Team      = team;
 }