Skip to content

Instantly share code, notes, and snippets.

@awithy
Created January 26, 2012 17:42
Show Gist options
  • Save awithy/1683977 to your computer and use it in GitHub Desktop.
Save awithy/1683977 to your computer and use it in GitHub Desktop.
IQueueService
public interface IQueueService
{
void Enqueue(QueueUri queueUri, string queueMessage);
QueueMessage Dequeue(QueueUri queueUri, TimeSpan visibilityTimeout);
QueueMessage Dequeue(QueueUri queueUri, TimeSpan visibilityTimeout, TimeSpan pollingWaitPeriod);
QueueMessage DequeueNoBlock(QueueUri queueUri, TimeSpan visibilityTimeout);
void DeleteQueueMessage(QueueUri queueUri, QueueMessage queueMessage);
void ClearQueue(QueueUri queueUri);
int GetMessageCount(QueueUri queueUri);
void CreateIfNotExists(QueueUri queueUri);
void DeleteQueueIfExists(QueueUri queueUri);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment