コード例 #1
0
ファイル: Listener.cs プロジェクト: HYDPublic/QueueBatch
 public Listener(ITriggeredFunctionExecutor executor, CloudQueue queue, CloudQueue poisonQueue,
                 TimeSpan maxBackoff, int maxRetries, TimeSpan visibilityTimeout, int parallelGets, ILoggerFactory loggerFactory)
 {
     this.executor          = executor;
     this.queue             = queue;
     this.poisonQueue       = poisonQueue;
     this.maxRetries        = maxRetries;
     this.visibilityTimeout = visibilityTimeout;
     this.loggerFactory     = loggerFactory;
     gets    = new Task <IEnumerable <CloudQueueMessage> > [parallelGets];
     backoff = new RandomizedExponentialBackoffStrategy(TimeSpan.FromMilliseconds(100), maxBackoff);
 }
コード例 #2
0
ファイル: Listener.cs プロジェクト: jeremy001181/QueueBatch
 public Listener(ITriggeredFunctionExecutor executor, QueueFunctionLogic queue,
                 TimeSpan maxBackOff, int maxRetries, TimeSpan visibilityTimeout, int parallelGets,
                 bool shouldRunOnEmptyBatch, ILoggerFactory loggerFactory)
 {
     this.executor              = executor;
     this.queue                 = queue;
     this.maxRetries            = maxRetries;
     this.visibilityTimeout     = visibilityTimeout;
     this.shouldRunOnEmptyBatch = shouldRunOnEmptyBatch;
     this.loggerFactory         = loggerFactory;
     gets    = new Task <IRetrievedMessages> [parallelGets];
     backOff = new RandomizedExponentialBackoffStrategy(TimeSpan.FromMilliseconds(100), maxBackOff);
 }