Patch uploaded to file section... I really don't like the way I patched this, seems really hacky to me. But I can't see another way to fix other than totally rewriting binsor to use fluent registration in one pass.
On Feb 17, 7:45 pm, Ayende Rahien <[email protected]> wrote: > Have fun, but don't code & drive, I understand it it dangerous. > On Tue, Feb 17, 2009 at 10:43 PM, João Bragança > <[email protected]>wrote: > > > > > 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 -~----------~----~----~----~------~----~------~--~---
