Skip to content
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

Use request scope in PortalModuleBase #4053

Conversation

GerardSmit
Copy link
Contributor

Fixes #4046

Summary

Currently every PortalModule create its own service scope. This PR changes this behaviour by using the request scope when possible.

If a PortalModule is created outside ASP.Net (or the HttpContext was not available) it'll still create a new scope.

I've placed the unit test in the same directory as DnnDependencyResolverTests since I was not sure where to place it. If this is incorrect, place a comment and I'll move it 😄.

@dnfadmin
Copy link

dnfadmin commented Sep 4, 2020

CLA assistant check
All CLA requirements met.

Copy link
Contributor

@bdukes bdukes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks!

@bdukes bdukes added this to the 9.7.2 milestone Sep 4, 2020
@valadas valadas merged commit 1fb22f6 into dnnsoftware:develop Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use request scope in PortalModuleBase
5 participants