Currently it's possible to inject HttpRequest into a non-http service. This works only when the service is instantiated during a http scope injector when the the frontInjector has HttpRequest available. For the next request, the frontInjector changed, but the non-http service is still alive basically keeping the initial HttpRequest forever. We need to make sure that it throws when a non-http service has http-scoped dependencies.
Currently it's possible to inject
HttpRequest
into a non-http service. This works only when the service is instantiated during a http scope injector when the thefrontInjector
hasHttpRequest
available. For the next request, thefrontInjector
changed, but the non-http service is still alive basically keeping the initialHttpRequest
forever. We need to make sure that it throws when a non-http service has http-scoped dependencies.