C# sample for QueuedDocumentRetrieve and QueuedDocumentRelease. The Retrieve is run first, if a response is received that contains an item the Release should be done right away as can be seen in the sample. The Retrieve\Release should be placed in a loop. If a Retrieve is successful, Retrieves would continue until an empty Request, the sample checks the QueueId, is received. The loop would then sleep for at least five minutes, perhaps longer depending on traffic, and then try again.