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
{{ message }}
Repository navigation
Utility of DataReaderDisposing logging/interception #24295
RelationalDataReader has a logging/interception hook for disposing - but not for closing the reader (which happens just before). there's very little difference between a closed and disposed reader - both states are almost the same since the reader cannot be reused (unlike connection for example). Also, any I/O would very likely occur during Close, which is where we don't log the elapsed time etc.
Do we know if/how users are using this? Should we make DataReaderDisposing include Close as well, so that users can skip that via interceptors, and so that its time is logged too?
Activity
smitpatel commentedon Mar 1, 2021
You can only read out parameter values after reader is closed but before it is disposed.
ajcvickers commentedon Mar 10, 2021
Backlogging to add Close interception.
ajcvickers commentedon Jun 21, 2022
Closing this in favor of #23535, since the same event covers both cases.
Add interception for DbDataReader.Close
Add interception for DbDataReader.Close (#28290)