CInject always injecting all methods

Jun 11, 2013 at 5:30 PM
I did a LogInject only to the methods of the App class of a WPF application. Unfortunately CInject wrote logging code to each and every method of my assembly. I used ILSpy to check,

How can I convince CInject to inject just the methods I checked in the Target Assemblies treeview?


Jun 12, 2013 at 12:26 AM
Jun 12, 2013 at 9:58 AM
Sorry, my fault. The assembly I used for testing wasn't clean but already injected by CInject. I rebuilt the assembly and used CInject on the new assembly. Now it works as expected. I.e., only the methods I checked were injected.
Jun 12, 2013 at 10:03 AM
Excellent, good to know that!