MethodBoundaryAspect.Fody
MethodBoundaryAspect.Fody copied to clipboard
Constructor weaving
It would be nice to be able to also weave the constructor. Is this a general restriction of fody?
I am not really sure. Normally a ctor should also be just a method but this has to be checked.
Would this be an expected default behavior that also ctors are intercepted? E.g. if you have a logging aspect every instantiation should be logged?
I do think that constructor intercepting should be a default behaviour. When implementing the attribute you can always just not log the constructor (MethodBase.IsConstructor).
Hi, any update on this?