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