public ScanBlobScanLogHybridPollingStrategy(IBlobScanInfoManager blobScanInfoManager) : base() { _blobScanInfoManager = blobScanInfoManager; _scanInfo = new Dictionary <IStorageBlobContainer, ContainerScanInfo>(new StorageBlobContainerComparer()); _pollLogStrategy = new PollLogsStrategy(performInitialScan: false); _cancellationTokenSource = new CancellationTokenSource(); _blobsFoundFromScanOrNotification = new ConcurrentQueue <IStorageBlob>(); }
public ScanBlobScanLogHybridPollingStrategy(IBlobScanInfoManager blobScanInfoManager, IWebJobsExceptionHandler exceptionHandler, ILogger <BlobListener> logger) : base() { _blobScanInfoManager = blobScanInfoManager; _scanInfo = new Dictionary <BlobContainerClient, ContainerScanInfo>(new CloudBlobContainerComparer()); _pollLogStrategy = new PollLogsStrategy(exceptionHandler, logger, performInitialScan: false); _cancellationTokenSource = new CancellationTokenSource(); _blobsFoundFromScanOrNotification = new ConcurrentQueue <BlobNotification>(); _exceptionHandler = exceptionHandler ?? throw new ArgumentNullException(nameof(exceptionHandler)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }