Query Interception - Disposing of diagnostic listeners
问题 We are using DiagnosticListeners in order to modify the SQL command text that EF Core produces. The problem is that our listeners need to be modifying the SQL command based on some user specific data that comes into our Api via HttpRequests. Our current solution is extremely hacky and likely to cause issues in the future. We register a new listener each time DbContext is created: public class MyContext : DbContext { private readonly HReCommandAdapter _adapter; public MyContext