Registered EnvelopeService with a scoped lifetime in the dependency injection container by adding `builder.Services.AddScoped<EnvelopeService>();` to Program.cs. This ensures a new instance is created per HTTP request.
2.6 KiB
2.6 KiB