I have a singleton service with a dependency on a service with a request scoped lifecycle.
If I allow the container to inject the request scoped service when I first get the singleton it will be fine for the current request but will be disposed of in any subsequent request.
Does this mean I have to use the dependency container to create the request scoped service within the singleton?
I wouldn’t recommend injecting the container itself in your singleton service. Instead: