/// <summary> /// Creates a new queue processor /// </summary> /// <param name="apiKey">Your API key</param> /// <param name="queueKey">Your queue key</param> /// <param name="take">Number of items to pull from queue at once</param> public QueueProcessor(string apiKey, string queueKey, int take) { _options = new HooqOptions(apiKey, queueKey) { Take = take }; Setup(); }
/// <summary> /// Creates a new queue processor /// </summary> /// <param name="apiKey">Your API key</param> /// <param name="queueKey">Your queue key</param> /// <param name="take">Number of items to pull from queue at once</param> /// <param name="timeout">Time to hide the message from the queue</param> public QueueProcessor(string apiKey, string queueKey, int take, int timeout) { _options = new HooqOptions(apiKey, queueKey) { Take = take, Timeout = timeout }; Setup(); }
/// <summary> /// Creates a new queue processor /// </summary> /// <param name="options">A populated HooqQueueOptions model</param> public QueueProcessor(HooqOptions options) { _options = options; Setup(); }
/// <summary> /// Creates a new queue processor /// </summary> /// <param name="apiKey">Your API key</param> /// <param name="queueKey">Your queue key</param> public QueueProcessor(string apiKey, string queueKey) { _options = new HooqOptions(apiKey, queueKey); Setup(); }