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

Undecorated service succeeds, but decorated service fails (#378) #379

Merged
merged 1 commit into from
Feb 25, 2021

Conversation

yallie
Copy link
Contributor

@yallie yallie commented Feb 24, 2021

Demonstrates issue #378.

The container is set up to allow dependencies of a shorter lifespan
(it's a large legacy app that has a lot of code relying on this setup).

The default reuse is Scoped, instead of Transient.
Resolution occurs within the open scope.
Decorated service is set up to be created using a factory method.

Undecorated service resolves just fine.
Decorated service resolution throws an exception.
Both services are singletons, and both have the same non-singleton dependencies.

@dadhi
Copy link
Owner

dadhi commented Feb 25, 2021

@yallie Thanks, merging...

@dadhi dadhi merged commit e42f5ea into dadhi:master Feb 25, 2021
@dadhi dadhi linked an issue Feb 25, 2021 that may be closed by this pull request
@yallie yallie deleted the issue-378 branch February 25, 2021 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent resolution failure
2 participants