Beispiel #1
0
        /// <summary>
        /// Send a single text line (along with target number) to either text file (dispenser) or output consumer
        /// </summary>
        /// <param name="tplToSend"></param>
        private void SendNextLine(Tuple <ExternalLine, int> tplToSend)
        {
            if (_outputToWriter)
            {
                _outputFileWriter.SendNextLine(tplToSend);
            }
            else
            {
                _config.OutputConsumer(tplToSend, _globalCache);
            }

            if (tplToSend != null)
            {
                _targets[tplToSend.Item2].All++;                  // increment WrittenLinesTotalCnt count
            }
        }