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.
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.