/// <summary> /// Adds the specified SoftwareOathAuthenticationMethod to the collection via POST. /// </summary> /// <param name="softwareOathAuthenticationMethod">The SoftwareOathAuthenticationMethod to add.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> /// <returns>The created SoftwareOathAuthenticationMethod.</returns> public System.Threading.Tasks.Task <SoftwareOathAuthenticationMethod> AddAsync(SoftwareOathAuthenticationMethod softwareOathAuthenticationMethod, CancellationToken cancellationToken) { this.ContentType = "application/json"; this.Method = "POST"; return(this.SendAsync <SoftwareOathAuthenticationMethod>(softwareOathAuthenticationMethod, cancellationToken)); }
/// <summary> /// Adds the specified SoftwareOathAuthenticationMethod to the collection via POST. /// </summary> /// <param name="softwareOathAuthenticationMethod">The SoftwareOathAuthenticationMethod to add.</param> /// <returns>The created SoftwareOathAuthenticationMethod.</returns> public System.Threading.Tasks.Task <SoftwareOathAuthenticationMethod> AddAsync(SoftwareOathAuthenticationMethod softwareOathAuthenticationMethod) { return(this.AddAsync(softwareOathAuthenticationMethod, CancellationToken.None)); }