This is a Add-In for Fody
Features
Add module information to exceptions
To all public methods and property setters of classes that implement ILisrtModule a try-catch block is injected to add the module name to the exception.
Set InitializationState on exceptions in Initialize and Exit methods
To the Initialize() and Exit() methods a try-catch block is injected to set the InitializationState.
Usage
Install the Loehnert.Lisrt.Aop.Fody NuGet package.
Add
<Loehnert.Lisrt.Aop/>
to FodyWeavers.xml<Weavers> <Loehnert.Lisrt.Aop/> </Weavers>