public NHibernateAppender()
        {
            _latch     = new object();
            _formatter = new ParamBuilderFormatter(new FormattingEngine());
            _queue     = new Queue <LoggingEvent>();

            _worker         = new BackgroundWorker();
            _worker.DoWork += ProcessQueue;
            _worker.RunWorkerAsync();
        }
示例#2
0
        public NHibernateAppender()
        {
            _latch = new object();
            _formatter = new ParamBuilderFormatter( new FormattingEngine() );
            _queue = new Queue<LoggingEvent>();

            _worker = new BackgroundWorker();
            _worker.DoWork += ProcessQueue;
            _worker.RunWorkerAsync();
        }
示例#3
0
 public void Setup()
 {
     // Setup
     FormattingEngine engine = new FormattingEngine();
     _appender = new ParamBuilderFormatter( engine );
 }