Hi Scott Do you know if it is possible to replace the ErrorAction with a custom one without modifying the RhinoServiceBus source code?
Пʼятниця, 24 серпня 2012 р. 19:18:53 UTC+3 користувач Scott написав: > > You can extend the service bus to add other behaviors to do what you want. > I don't have the code in front of me now, so I don't remember the exact > implementation. You can create your own flavor of the ErrorAction and > modify the service bus or facility to load your Action instead of, or in > addition to, the ErrorAction. > > I did something similar in that the retries still occur, but the retry > intervals are configurable and can be read from the config file at startup. > We have a specific case where this was necessary due to outages from an > external service. The Action will also email the IT staff when the service > bus hits its maximum number of retries and moves the message to the error > queue. > > It can be a little challenging to trace through the code to see where and > when Actions and MessageModules get loaded. If you invest the time to > understand the flow of the application on startup, you will discover how to > plug in your custom code with very little effort. > > -Scott > > On Wednesday, August 22, 2012 7:02:28 AM UTC-6, René M. Andersen wrote: >> >> Hi, >> >> Is it possible to configure the error handling behaviour when message >> processing fails? I am specifically thinking about how to replace the >> built-in ErrorAction which controls the retries and moves the message to >> the error queue when all retries have been used. >> >> We would like to preserve the retry functionality but remove the message >> from the queue instead of moving it to the error queue. >> > -- You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group. To view this discussion on the web visit https://groups.google.com/d/msg/rhino-tools-dev/-/3aSKlxzAZ6wJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.
