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