Refactor service registration with lambda expression

This commit is contained in:
tekh 2025-06-30 15:53:38 +02:00
parent faa019355a
commit 07cab88e0d

View File

@ -18,7 +18,7 @@ public class Mock
builder.Configuration.AddJsonFile(configPath, optional: true, reloadOnChange: true);
builder.Services
.AddEnvelopeGeneratorInfrastructureServices(opt =>
.AddEnvelopeGeneratorInfrastructureServices((provider, opt) =>
{
if (useRealDb)
{