-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too many scopes created #1634
Comments
After all I am not really sure that's an issue. I assume the static file middleware also requires it? |
/cc @jtkech |
So here we would need to register Note: There are other custom static file providers that should be tenant aware and whose urls should contain the prefix. Another solution is to run a middleware after the app level ones but before our tenant and router middlewares, just to update the request Yes it is doable, let me know if it is worth doing it That said, creating a new scope (on an already activated shell) is fast and not expensive if you don't resolve any services, and our |
Yes, it's necessary to create scopes even for static file requests. This is required to do anything else in the request apart from serving the file, including collecting telemetry or authorization. |
We are going in the
ModularTenantContainerMiddleware
and creating a service scope even for serving a static file.The text was updated successfully, but these errors were encountered: