/// <summary> /// Delete a goal instance /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='goalId'> /// The identifier of the goal to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> DeleteAsync(this IGoals operations, string goalId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.DeleteWithHttpMessagesAsync(goalId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Delete a goal instance /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='goalId'> /// The identifier of the goal to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IGoals operations, System.Guid goalId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(goalId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }