コード例 #1
0
        public Task OpenAsync(PartitionContext context)
        {
            WarmStorageEventSource.Log.LeaseObtained(ProcessorName, _eventHubName, context.Lease.PartitionId);

            _elasticSearchWriter = _elasticSearchWriterFactory(context.Lease.PartitionId);

            return Task.FromResult(false);
        }
コード例 #2
0
        public Task OpenAsync(PartitionContext context)
        {
            WarmStorageEventSource.Log.LeaseObtained(ProcessorName, _eventHubName, context.Lease.PartitionId);

            _elasticSearchWriter = _elasticSearchWriterFactory(context.Lease.PartitionId);

            return(Task.FromResult(false));
        }
コード例 #3
0
 public ThomsonScraper(IWebRequestFactory webRequestFactory, ILateFlightsParser lateFlightsParser, IElasticSearchWriter elasticSearchWriter)
 {
     _webRequestFactory = webRequestFactory;
     _lateFlightsParser = lateFlightsParser;
     _elasticSearchWriter = elasticSearchWriter;
 }