/// <summary> /// Remove an action plan objective /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='actionPlanId'> /// The instance of the plan that the objective belongs to. /// </param> /// <param name='objectiveId'> /// The instance of the objective to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> DeleteAsync(this IActionPlanObjectives operations, string actionPlanId, string objectiveId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { using (var _result = await operations.DeleteWithHttpMessagesAsync(actionPlanId, objectiveId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Remove an action plan objective /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='actionPlanId'> /// The instance of the plan that the objective belongs to. /// </param> /// <param name='objectiveId'> /// The instance of the objective to delete. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task DeleteAsync(this IActionPlanObjectives operations, System.Guid actionPlanId, System.Guid objectiveId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { (await operations.DeleteWithHttpMessagesAsync(actionPlanId, objectiveId, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Remove an action plan objective /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='actionPlanId'> /// The instance of the plan that the objective belongs to. /// </param> /// <param name='objectiveId'> /// The instance of the objective to delete. /// </param> public static void Delete(this IActionPlanObjectives operations, System.Guid actionPlanId, System.Guid objectiveId) { operations.DeleteAsync(actionPlanId, objectiveId).GetAwaiter().GetResult(); }
/// <summary> /// Remove an action plan objective /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='actionPlanId'> /// The instance of the plan that the objective belongs to. /// </param> /// <param name='objectiveId'> /// The instance of the objective to delete. /// </param> public static object Delete(this IActionPlanObjectives operations, string actionPlanId, string objectiveId) { return(operations.DeleteAsync(actionPlanId, objectiveId).GetAwaiter().GetResult()); }