Beispiel #1
0
 public Producer(string id, PCQueue pcQueue, ConfigData configFile, ILocationFileReader IOhandler)
 {
     this.id      = id;
     finished     = false;         // Initially not finished
     this.pcQueue = pcQueue;
     //counter = 0; // Initial value for the work item counter]
     this.configFile = configFile;
     this.IOhandler  = IOhandler;
     (T = new Thread(run)).Start(); // Create a new thread for this producer and get it started
     RunningThreads++;              // Increment the number of running producer threads;
 }
Beispiel #2
0
 public ProcessingBaseCurrentWeatherImpl(IElasticConnection elasticConnection,
                                         ILocationFileReader locationFileReader, IOwmApiReader owmApiReader, IProcessingUtils processingUtils,
                                         IOwmToElasticDocumentConverter <CurrentWeatherBase> owmToElasticDocumentConverter,
                                         IProcessingBaseImplementations processingBaseImplementations)
 {
     _elasticConnection             = elasticConnection;
     _locationFileReader            = locationFileReader;
     _owmApiReader                  = owmApiReader;
     _processingUtils               = processingUtils;
     _owmToElasticDocumentConverter = owmToElasticDocumentConverter;
     _processingBaseImplementations = processingBaseImplementations;
     _logger = Log.Logger.ForContext <ProcessingBaseCurrentWeatherImpl>();
     _logger.Information("Begin with etl process of weather information for locations.");
 }
Beispiel #3
0
        private ILocationFileReader IOhandler;                        // Data used when this work is processed - config record

        public Work(ConfigRecord data, ILocationFileReader IOhandler) //extra param for IcyclistIO
        {
            this.configRecord = data;                                 // Data is initialised when the work is instantiated
            this.IOhandler    = IOhandler;
        }
Beispiel #4
0
 public FormsBasedUI(ILocationFileReader IOhandler)
 {
     InitializeComponent();
     this.IOhandler = IOhandler;
 }