The query-side counterpart of Brighter
HEALTH ? 100 / Healthy
The query-side counterpart of Brighter
// readme
The query-side counterpart of Brighter.
In your ConfigureServices method, use AddDarker to add Darker to the container.
DI integration is provided by the Paramore.Darker.Extensions.DependencyInjection package.
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
// Add Darker and some extensions.
services.AddDarker()
.AddHandlersFromAssemblies(typeof(GetPeopleQueryHandler).Assembly)
.AddJsonQueryLogging()
.AddDefaultResiliencePipelines();
// Add framework services.
services.AddMvc();
}
EF Core and the request scope. EF Core registers the DbContext as Scoped. A Scoped QueryProcessor gets a sibling scope, so it does not share the requestβs DbContext. To share it, use Scoped handlers and opt in to the request scope with the Paramore.Darker.Extensions.AspNetCore package: