/// <summary> /// The ForceExpireHIT operation causes a HIT to expire immediately, as if the HIT's /// <c>LifetimeInSeconds</c> had elapsed. /// </summary> /// <param name="request">A <see cref="ForceExpireHITRequest"/> instance containing the /// request parameters</param> /// <remarks> The effect is identical to the HIT expiring on its own: The HIT no longer /// appears on the Mechanical Turk web site, and no new Workers are allowed to accept the HIT. /// Workers who have accepted the HIT prior to expiration are allowed to complete it or return it, /// or allow the assignment duration to elapse (abandon the HIT). Once all remaining assignments /// have been submitted, the expired HIT becomes "reviewable", and will be returned by a call /// to GetReviewableHITs.</remarks> public void ForceExpireHIT(ForceExpireHITRequest request) { this.SendRequest(request); }
public static void ExpireHitByID(string id) { ForceExpireHITRequest request = new ForceExpireHITRequest(); request.HITId = id; TestUtil.Client.ForceExpireHIT(request); }
/// <summary> /// See <a href="http://docs.amazonwebservices.com/AWSMechTurk/2012-03-25/AWSMturkAPI/ApiReference_ForceExpireHITOperation.html">online documentation for this operation.</a> /// </summary> /// <param name="hitId">The hit id.</param> public void ForceExpireHIT(string hitId) { ForceExpireHITRequest request = new ForceExpireHITRequest(); request.HITId = hitId; Proxy.ForceExpireHIT(request); }