You can add a DoNotWire attribute to properties. Does this work?
Cheers John On Apr 13, 6:04 am, "jorge.rowies" <[email protected]> wrote: > Hello, Roelof Blom said in the last post of this thread: > > http://groups.google.com/group/castle-project-users/browse_thread/thr... > > That one way of disabling property auto-wiring could be achieved with > something like this: > > container.Register(Component > .For(impl) .LifeStyle.Transient) > .Activator<MyModelActivator>() > > class MyModelActivator: DefaultComponentActivator > { > protected override void SetUpProperties(object instance, > CreationContext > context) > { > // Do not auto-wire > } > > } > > Which worked great for me, but now I am having problems using > ServiceOverrides to set dependencies on a property, and I think it is > because of this custom activator. > > Is there any way to prevent property auto wiring and still be able to > use ServiceOverrides? > > Thanks a lot -- You received this message because you are subscribed to the Google Groups "Castle Project Users" 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/castle-project-users?hl=en.
