示例#1
0
 /// <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();
 }
示例#2
0
 /// <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();
 }
示例#3
0
 /// <summary>
 /// Creates a new queue processor
 /// </summary>
 /// <param name="options">A populated HooqQueueOptions model</param>
 public QueueProcessor(HooqOptions options)
 {
     _options = options;
     Setup();
 }
示例#4
0
 /// <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();
 }