コード例 #1
0
 /// <summary>
 /// Creates the specified RequestObject using POST.
 /// </summary>
 /// <param name="requestObjectToCreate">The RequestObject to create.</param>
 /// <returns>The created RequestObject.</returns>
 public System.Threading.Tasks.Task <RequestObject> CreateAsync(RequestObject requestObjectToCreate)
 {
     return(this.CreateAsync(requestObjectToCreate, CancellationToken.None));
 }
 /// <summary>
 /// Adds the specified RequestObject to the collection via POST.
 /// </summary>
 /// <param name="request">The RequestObject to add.</param>
 /// <returns>The created RequestObject.</returns>
 public System.Threading.Tasks.Task <RequestObject> AddAsync(RequestObject request)
 {
     return(this.AddAsync(request, CancellationToken.None));
 }
 /// <summary>
 /// Adds the specified RequestObject to the collection via POST.
 /// </summary>
 /// <param name="request">The RequestObject to add.</param>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
 /// <returns>The created RequestObject.</returns>
 public System.Threading.Tasks.Task <RequestObject> AddAsync(RequestObject request, CancellationToken cancellationToken)
 {
     this.ContentType = "application/json";
     this.Method      = "POST";
     return(this.SendAsync <RequestObject>(request, cancellationToken));
 }
コード例 #4
0
 /// <summary>
 /// Initializes any collection properties after deserialization, like next requests for paging.
 /// </summary>
 /// <param name="requestObjectToInitialize">The <see cref="RequestObject"/> with the collection properties to initialize.</param>
 private void InitializeCollectionProperties(RequestObject requestObjectToInitialize)
 {
 }