Managing Transactions with a Shared Repository Instance

If you share a repository instance with the Repository Add-in, you also share a transaction space with it. The Repository Add-in cooperates with the other add-ins with which it shares transaction space by adhering to these rules:

Your add-in module might not be the only module that shares a repository instance with the Repository Add-in; design your add-in to cooperate with other add-in modules. Thus, you should never return control to the Repository Add-in until your thread has finished responding to the event that the Repository Add-in fired. That is, do not return control to the Repository Add-in while you still have an active transaction in that repository instance.