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