paulirwin commented on issue #1062:
URL: https://github.com/apache/lucenenet/issues/1062#issuecomment-2558195235
After some thought, given the performance concern, I'm going to move this to
the Future milestone. I still think this will warrant consideration in the
future, but I think it should be once we have good benchmarking infrastructure
in place to ensure there are no performance regressions. In the meantime, this
would just be a convenience and users can easily work around it by creating
their own wrapper types, such as:
```c#
public class DelegateReaderDisposedListener : IReaderDisposedListener
{
private readonly Action<IndexReader> action;
public DelegateReaderDisposedListener(Action<IndexReader> action)
{
this.action = action;
}
public void OnDispose(IndexReader reader)
{
action(reader);
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]