protected VstsDefinitionHttpClient(
     Uri baseAddress,
     VstsApiEndpointConfig config,
     string apiType)
 {
     _config    = config;
     _apiType   = apiType;
     JsonClient = new JsonHttpClient(
         new Uri($"{baseAddress.Scheme}://{baseAddress.Authority}/"),
         config.Credentials);
 }
 public VstsReleaseHttpClient(JObject definition, VstsApiEndpointConfig config)
     : base(new Uri(definition["url"].ToString()), config, ReleaseApiType)
 {
 }
Exemplo n.º 3
0
 public VstsBuildHttpClient(JObject definition, VstsApiEndpointConfig config)
     : base(new Uri(definition["project"]["url"].ToString()), config, BuildApiType)
 {
 }