/// <summary> /// Adds the specified SourceCollection to the collection via POST. /// </summary> /// <param name="sourceCollection">The SourceCollection to add.</param> /// <returns>The created SourceCollection.</returns> public System.Threading.Tasks.Task <SourceCollection> AddAsync(SourceCollection sourceCollection) { return(this.AddAsync(sourceCollection, CancellationToken.None)); }
/// <summary> /// Adds the specified SourceCollection to the collection via POST. /// </summary> /// <param name="sourceCollection">The SourceCollection to add.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> /// <returns>The created SourceCollection.</returns> public System.Threading.Tasks.Task <SourceCollection> AddAsync(SourceCollection sourceCollection, CancellationToken cancellationToken) { this.ContentType = "application/json"; this.Method = "POST"; return(this.SendAsync <SourceCollection>(sourceCollection, cancellationToken)); }
/// <summary> /// Creates the specified SourceCollection using POST. /// </summary> /// <param name="sourceCollectionToCreate">The SourceCollection to create.</param> /// <returns>The created SourceCollection.</returns> public System.Threading.Tasks.Task <SourceCollection> CreateAsync(SourceCollection sourceCollectionToCreate) { return(this.CreateAsync(sourceCollectionToCreate, CancellationToken.None)); }