public FileProducerConsumerQueue(int numberOfConsumers, IFileProcessResultHandler processResultHandler, IFileHandler fileProcessor)
            : base(numberOfConsumers)
        {
            if (processResultHandler == null) { throw new ArgumentNullException("processResultHandler"); }
            if (fileProcessor == null) { throw new ArgumentNullException("fileProcessor"); }

            this.processResultHandler = processResultHandler;
            this.fileProcessor = fileProcessor;
        }
Ejemplo n.º 2
0
        public FileProducerConsumerQueue(int numberOfConsumers, IFileProcessResultHandler processResultHandler, IFileHandler fileProcessor)
            : base(numberOfConsumers)
        {
            if (processResultHandler == null)
            {
                throw new ArgumentNullException("processResultHandler");
            }
            if (fileProcessor == null)
            {
                throw new ArgumentNullException("fileProcessor");
            }

            this.processResultHandler = processResultHandler;
            this.fileProcessor        = fileProcessor;
        }