1

The application has an implementation of IEventProcessor. When an unhandled exception is thrown from the ProcessEventsAsync method the EventProcessorHost never re-sends those messages to the running instance of IEventProcessor. (It will re-send if the hosting application is stopped and restarted or if the lease is lost and re-obtained.)

when an exception occurs in processEventAsync the checkpoint will not be set only if it's successful the checkpoint is set using this context.CheckpointAsync()

Vinu
  • 27
  • 4
  • Looks like a duplicate of https://stackoverflow.com/questions/41006498/forcing-eventprocessorhost-to-re-deliver-failed-azure-event-hub-eventdatas-to-i – Sebastian Roether Jul 08 '19 at 17:54

1 Answers1

0

Checkout the ProcessorErrorAsync method. According the doc, it will be called in the event of an error. You'll have access to the context where can log the id and error.

Ryan Hill
  • 1,821
  • 2
  • 8
  • 21
  • But what I want to achieve is this when an exception occurs. go back and read from storage account and receive again. How can that be achieved – Vinu Jun 24 '19 at 06:25