You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following up on #44 regarding constructor interception.
Should I add it before or after base class call…
For my personal use case, I'd need to be able to run code before anything (including the base class call).
Should it be around the original constructor body
What's the other option? Inside the actual constructor body? Don't think that changes anything for me either way but other people might prefer the injected code to be run outside of the body?
Does it make sense to have a try-catch
It does not affect my particular use case, but I'd say yes. To remain consistent with the interception API for methods and properties, for one. And because user code can always throw and they might want to handle it.
The text was updated successfully, but these errors were encountered:
Following up on #44 regarding constructor interception.
For my personal use case, I'd need to be able to run code before anything (including the base class call).
What's the other option? Inside the actual constructor body? Don't think that changes anything for me either way but other people might prefer the injected code to be run outside of the body?
It does not affect my particular use case, but I'd say yes. To remain consistent with the interception API for methods and properties, for one. And because user code can always throw and they might want to handle it.
The text was updated successfully, but these errors were encountered: