-
Notifications
You must be signed in to change notification settings - Fork 33
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
ExportDecorator with When.InjectedInto won't fire #192
Comments
@mgth I was able to replicate the bug. I'll see if I can fix it this weekend at some point and do a beta release. |
@mgth I've released a pre-release version to nuget. Can you test it out? |
Sorry, it still fail for me. But this is special case where I must use Container.Inject(obj); |
@mgth you’ll need to put together a sample showing the issue. |
when this will return a MyServiceDecorator as expected |
@mgth the reason it's not work the way you want it to is because the I'm not inclined to make a change to the default behavior because it could have unintended side effects but you could do a custom condition like this. |
Ok, that works. Thank you much for your precious time. |
@mgth glad I was able to address your issue. I'm going to close this as fixed, if you run into anything more open an issue and I'll try and address it. I'll plan on doing an official release near the end of this month. |
If i do not put the condition Decorator is applied, but when When.InjectedInto is used the decorator is never applied.
I'm using a Func<param, IService> in the constructor.
Doing this with standard export works as expected but not with decorator.
The text was updated successfully, but these errors were encountered: