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