Esempio n. 1
0
 public void Process()
 {
     Thread.Sleep(100);
     do
     {
         //_producerConsumer.lollypop.WaitOne();
         HtmlFileWriter hfw  = new HtmlFileWriter(_producerConsumer.GetConfigurationReader().GetHtmlFilesDirectory(), _producerConsumer.GetConfigurationReader().GetResourcesDirectory(), _producerConsumer.FileSystemHelper);
         IStackItem     item = null;
         while (_producerConsumer.Queue.TryDequeue(out item))
         {
             hfw.WriteHtmlFile(item);
             // do stuff
         }
         _producerConsumer.IsDoneWriting = true;
     } while (!_producerConsumer.IsDoneReading || !_producerConsumer.Queue.IsEmpty);
 }
Esempio n. 2
0
        public void TestFileWriter()
        {
            IStackItem itm = _xfr.GetNextStackItem();

            _hfw.WriteHtmlFile(itm);
        }