A scoped service instance is created only once within a request scope and is reused for all calls within that request.
services.AddScoped<IMyClass, MyClass>();
A scoped service instance is created only once within a request scope and is reused for all calls within that request.
services.AddScoped<IMyClass, MyClass>();
A scoped service instance is created only once within a request scope and is reused for all calls within that request.
services.AddScoped<IMyClass, MyClass>();