Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constructor weaving #87

Open
jmartschinke opened this issue Sep 2, 2021 · 3 comments
Open

Constructor weaving #87

jmartschinke opened this issue Sep 2, 2021 · 3 comments

Comments

@jmartschinke
Copy link
Contributor

It would be nice to be able to also weave the constructor.
Is this a general restriction of fody?

@Ralf1108
Copy link
Collaborator

Ralf1108 commented Sep 3, 2021

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?

@jmartschinke
Copy link
Contributor Author

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).

@hasanmanzak
Copy link

Hi, any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants