I ran into something unexpected today, you can't override a service
dependency with the extend macro:

component "first", SomeDependency:
        ID = "First"

component "second", SomeDependency:
        ID = "Second"

component "someComponent", SomeComponent:
        dependency = @first

extend "someComponent":
        dependency = @second

SomeComponent someComponent = container.Resolve<SomeComponent>();
Assert.AreEqual("Second", someComponent.Dependency.ID);

I'm gonna patch this unless there are any objections. I have a 12 pack
this time, should be cake.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to