Exemplo n.º 1
0
 /// <summary>
 /// Makes the project scope request string.
 /// </summary>
 /// <param name="project">The project.</param>
 /// <param name="exchange">The exchange.</param>
 /// <returns>StructuredHttpExchange.</returns>
 private static StructuredHttpExchange MakeProjectScopeRequestString(string project, StructuredHttpExchange exchange)
 {
     if (String.IsNullOrWhiteSpace(project))
     {
         throw new Exception("Project Name must be Specified");
     }
     exchange.BaseRoute = VSOClientManager.VsoCollection + "/" + project + "/_apis";
     exchange.SetQuery("api-version", "1.0");
     return(exchange);
 }
Exemplo n.º 2
0
 private static StructuredHttpExchange MakeCollectionScopeRequestString(StructuredHttpExchange exchange)
 {
     if (exchange.BaseRoute == null)
     {
         exchange.BaseRoute = VSOClientManager.VsoCollection + "/_apis";
     }
     else
     {
         exchange.BaseRoute = VSOClientManager.VsoCollection + "/_apis" + exchange.BaseRoute;
     }
     exchange.SetQuery("api-version", "1.0");
     return(exchange);
 }