Beispiel #1
0
        public HelixServer(string?helixBaseUri = null, string?token = null, HttpClient?httpClient = null)
        {
            _helixBaseUri = string.IsNullOrEmpty(helixBaseUri) ? "https://helix.dot.net/" : helixBaseUri;

            _token = string.IsNullOrEmpty(token) ?
                 default : new AuthorizationToken(AuthorizationKind.PersonalAccessToken, token);
                     _client = new DevOpsHttpClient(httpClient: httpClient);
        }
Beispiel #2
0
 public DevOpsServer(string organization, AuthorizationToken authorizationToken = default, HttpClient?httpClient = null)
 {
     Organization = organization;
     _client      = new DevOpsHttpClient(authorizationToken, httpClient);
 }
Beispiel #3
0
 public HelixServer(string?token = null, HttpClient?httpClient = null)
 {
     _token = string.IsNullOrEmpty(token) ?
          default : new AuthorizationToken(AuthorizationKind.PersonalAccessToken, token);
              _client = new DevOpsHttpClient(httpClient: httpClient);
 }