Beispiel #1
0
        private void PipelineException(object sender, PipelineExceptionEventArgs e)
        {
            var @event = ExceptionEventExtensions.CorePipelineExceptionEvent(e.Pipeline.Exception, hostName, ipAddresses);

            @event.PipelineTypeFullName      = e.Pipeline.FullName();
            @event.PipelineStageName         = e.Pipeline.StageName;
            @event.PipelineEventTypeFullName = e.Pipeline.Event.FullName();

            lock (padlock)
            {
                foreach (var deferredEvent in deferredEvents)
                {
                    _bus.Publish(deferredEvent);
                }

                deferredEvents.Clear();
            }

            _bus.Publish(@event);
        }
Beispiel #2
0
        private void CrawlerPipelineException(object sender, PipelineExceptionEventArgs e)
        {
            Uri currentUri = ExtractCurrentUri(e.PropertyBag);

            _logger.InfoFormat("Error processsing '{0}': {1}", currentUri, e.Exception.Message);
        }
Beispiel #3
0
 private static void crawler_PipelineException(object sender, PipelineExceptionEventArgs e)
 {
     arguments.DefaultOutput.WriteLine("Pipeline Exception - {0}", e.Exception);
 }
Beispiel #4
0
 private static void CrawlerPipelineException(object sender, PipelineExceptionEventArgs e)
 {
     System.Console.Out.WriteLine("Error processsing '{0}': {1}", e.PropertyBag.Step.Uri, e.Exception.Message);
 }
Beispiel #5
0
 public void OnAfterPipelineExceptionHandled(object sender, PipelineExceptionEventArgs args)
 {
     AfterPipelineExceptionHandled.Invoke(sender, args);
 }
        public void OnAfterPipelineExceptionHandled(object sender, PipelineExceptionEventArgs args)
		{
            AfterPipelineExceptionHandled.Invoke(sender, args);
		}