Example #1
0
 public TeamCityApi(string server, string userName, string password, bool useGuestLogin, int timeoutSeconds)
 {
     ServicePointManager.ServerCertificateValidationCallback = (a, b, c, d) => true;
     _configuration = new TeamCityConfiguration()
     {
         ServerUrl = server.TrimEnd('/'),
         UserName = userName,
         Password = password,
         UseGuestLogin = useGuestLogin
     };
     TimeoutSeconds = timeoutSeconds;
 }
Example #2
0
 public TeamCityApi(TeamCityConfiguration config)
     : this(config.ServerUrl, config.UserName, config.Password, config.UseGuestLogin, config.TimeoutSeconds)
 {
 }