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

AutofacProcessorFactory does not support PerRequest scoped resolution #8

Closed
smithc opened this issue Jan 28, 2016 · 1 comment
Closed
Assignees
Labels

Comments

@smithc
Copy link
Contributor

smithc commented Jan 28, 2016

The AutofacProcessorFactory will attempt to use the root container when creating a child lifetime scope. Because of this, the factory is unaware of any tagged or nested lifetime scopes created by the MVC or WebAPI dependency resolvers - thus the factory is unable to support PerRequest dependency resolution.

The factory should be updated to attempt to create a child scope from any existing lifetime scopes, before falling back to the root container.

@smithc
Copy link
Contributor Author

smithc commented Feb 23, 2016

Published on nuget.

@smithc smithc closed this as completed Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant