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