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); }
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); }