public Task OpenAsync(PartitionContext context) { WarmStorageEventSource.Log.LeaseObtained(ProcessorName, _eventHubName, context.Lease.PartitionId); _elasticSearchWriter = _elasticSearchWriterFactory(context.Lease.PartitionId); return Task.FromResult(false); }
public Task OpenAsync(PartitionContext context) { WarmStorageEventSource.Log.LeaseObtained(ProcessorName, _eventHubName, context.Lease.PartitionId); _elasticSearchWriter = _elasticSearchWriterFactory(context.Lease.PartitionId); return(Task.FromResult(false)); }
public ThomsonScraper(IWebRequestFactory webRequestFactory, ILateFlightsParser lateFlightsParser, IElasticSearchWriter elasticSearchWriter) { _webRequestFactory = webRequestFactory; _lateFlightsParser = lateFlightsParser; _elasticSearchWriter = elasticSearchWriter; }