adaris

Results 3 comments of adaris

@scottkuhl which DI lifecycle are you using for your DbContext? I use XPO, another ORM, but it exhibits similar cross-threading problems. I seem to have solved them by registering the...

@scottkuhl Couldn't you register the DbContext as transient? This should inject a unique DbContext into each MediatR-handler, thereby avoiding any threading issues on the DbContext.

I would also appreciate this. One use case where it makes sense: Imagine you are developing a reusable Blazor component. Now you want to inject IStringLocalizer in case the app...