Darker v2.0.63 Release Notes
Release Date: 2019-08-28 // over 5 years ago-
- No longer instantiating a new service provider each query
You can change the lifetime of the queryprocessor to Scoped https://github.com/BrighterCommand/todo-backend-aspnetcore-brighter/blob/master/src/ToDoApi/Startup.cs#L78-L85
services.AddDarker(options => { //EFCore by default registers Context as scoped, which forces the QueryProcessorLifetime to also be scopedoptions.QueryProcessorLifetime = ServiceLifetime.Scoped; })