Exemplo n.º 1
0
 /// <summary>
 /// Adds the specified Site to the collection via POST.
 /// </summary>
 /// <param name="site">The Site to add.</param>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
 /// <returns>The created Site.</returns>
 public System.Threading.Tasks.Task <Site> AddAsync(Site site, CancellationToken cancellationToken)
 {
     this.ContentType = "application/json";
     this.Method      = "POST";
     return(this.SendAsync <Site>(site, cancellationToken));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds the specified Site to the collection via POST.
 /// </summary>
 /// <param name="site">The Site to add.</param>
 /// <returns>The created Site.</returns>
 public System.Threading.Tasks.Task <Site> AddAsync(Site site)
 {
     return(this.AddAsync(site, CancellationToken.None));
 }