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