-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
OnExit is invoked before the end of the function happens. #277
Comments
happy to accept a pull request for this |
I did start trying to fix this by getting it building on Linux first: |
I am also using it, please tell me how to deal with this . |
Still seeing this error System: Windows - 10
do you plan to fix the bug? |
@NurOrNuLL how about you step up and submit a pull request that fixes this |
I actually had a fix for this bug that I wanted to submit after this but that was 2 years ago. I no longer have that branch as I wiped my laptop and moved away from fody as it seemed there was no traction on getting this fixed. |
@phillip-haydon yeah i dropped the ball on that one. |
Any update on this? |
#28
One of the things I'm trying to use this lib for is to figure out the execution time of some methods by running Stopwatch on the Entry/Exit, but what I've realised is happening is that due to the OnExit being executed in the
try
instead offinally
(I THINK), it results in logs like:So I think issue #28 is still an issue.
This is running on the latest version:
Fody 6.2.0
MethodDecorator 1.1.1
.NET Core 3.1 project (AWS .NET Core Lambda)
The output of this is:
The text was updated successfully, but these errors were encountered: