-
Notifications
You must be signed in to change notification settings - Fork 458
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
Fix for issue #146: Performance Counter Instances Never Removed #149
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for taking care of changelog and doc!
Nice one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mackenzieajudd, once you fix my comment in the changelog I'll merge it.
@@ -975,3 +975,5 @@ Beta 1 - 21/jan/2005 | |||
- Fixed: Remove method | |||
|
|||
- Fixed: Windsor: Proxy for components with (service != impl) | |||
|
|||
- Changed: Performance Counter InstanceLifetime |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating the changelog, however it is sorted with the newest releases at the top. Could you move this to the first line in the file, we add the release line once we ship.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woops, moved it to the first line and updated the formatting to match others.
Looks good, fixes #146. |
The fix turned out to be quite simple (thanks @jonorossi for the tips!), the InstanceLifetime of the created PerformanceCounter had to be set to Process. This causes the created performance counter instances to be removed when the process closes.
I also updated performance-counters.md to reflect this.