At my company, we created the code for reuse, following the recommendations for using ITransaction , which allows us to run any arbitrary code and include it in the appropriate rules for handling exceptions and retries. This documentation provides guidance on how different types of exceptions should affect the RunAsync method, and how they should affect methods that are part of the remote endpoint.
Generally, handling any exceptions beyond what is discussed in the documentation is up to you. For me, Iβll just let an exception pop up and let the service fail if it is an unexpected exception. Expected exceptions should always be handled with an appropriate retry policy.
source share