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