-
Notifications
You must be signed in to change notification settings - Fork 42
Multiple DbContexts - only logging one of them #114
Comments
I have figured out the cause of this issue. It's to do with the way the other DbContext is registered and resolved. If you register it like so:
and then inject
And then inject However changing that to:
Fixes it again, allowing Closing for now as assuming there isn't anything that can be done about this. |
@anpete any idea why we might be missing events in this use case? |
Im not sure if this makes a difference but I am also using autofac as the underlying ioc container, rather than the default one provided by microsoft. I suspect you can replicate this in either scenario but i havent checked. |
In My application, I have 2 DbContexts, defined in seperate projects.
I have noticed that when accessing a page that utilises both of these dbcontexts to perform some query, only one of the dbcontexts is being captured by Glimpse:
(CompanyMenu VC is atually performing a long running EF query with another DbContext there, but glimpse isn't capturing it)
How does Glimpse "discover" the DbContexts and how can "inform" glimpse of this other one that is being used?
The text was updated successfully, but these errors were encountered: