示例#1
0
 /// <summary>
 /// Processes an <see cref="IEvent{T}" /> from the <see cref="IEventQueue" /> associated to the <see cref="WorkerThread" />.
 /// </summary>
 protected override void Run()
 {
     while (!_stop)
     {
         try
         {
             IEvent <PipelineArgs> evt = _eventQueue.ProcessEvent();
             Pipeline pipeline         = Pipeline.GetPipeline(evt.PipelineName);
             pipeline.Invoke(evt.PipelineArgs);
         }
         catch (Exception ex)
         {
             Log.Error(ex);
         }
     }
 }