DB context

I have a Blazor page in Blazor server, it is refreshing its data with a timer from a razen service. That works fine, if i call a popup to select another location it gives a conflict on the DB context because this is already in use for the parrent page. is it possible to give the service in the pop-up anoter Context?

ERROR:

023-04-20T11:35:04.528Z] Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.InvalidOperationException: A second operation was started on this context instance before a previous operation completed. This is usually caused by different threads concurrently using the same instance of DbContext. For more information on how to avoid threading issues with DbContext,

Tanks, It works now, adding ServiceLifetime.Transient did the trick.

builder.Services.AddDbContext(options =>
{
options.UseNpgsql(builder.Configuration.GetConnectionString("ioConnection"));
}, ServiceLifetime.Transient);