Results 118 comments of Ian Johnson

Sorry meant to reply to this yesterday and got side tracked. I think I might have misunderstood yesterday what you are looking for. Are you looking to do * Keyed...

Hmmm ok well that could work, to answer your previous question the registration will just replace when you get one instance. If you get an enumeration of them you will...

So essentially only apply the `AuditDecorator` when the implementation is attributed with the `AuditAttribute`? If that's the case you can use the `When.MeetsCondition` method to decide when the decorator should...

Ok glad that worked with slightly different syntax. I'll open an issue up to add When configuration to the ExportDecorator func. That's just an over sight on my part.

For the moment it's going to be dependent on registration order. That said this seems like a reasonable feature to ask for.

I should have time in the coming week to implement these two features and get a release out.

I've pushed out a nuget package with both changes

Hi @falamarzijahromi When you use just the MeetsCondition method is the method being called to test if it meets the condition? If so can you look at the static injection...

Hi @falamarzijahromi Decorated classes never know they are being decorated and the information isn't passed onto the conditional logic. The examples you gave aren't injecting into anything so the injected...

Hi @falamarzijahromi I understand where you're coming from but ultimately it's not how it was implemented. Currently when a dependency is located we find a registration that matches and then...