Is there a way of telling Castle not to wire up properties via the
fluent interface, i.e. to just do constructor injection?

I'm trying to register a group of presenters and all I want Castle to
do is construct them and ignore the properties; what I have currently
is

            container.Register(
                    AllTypes.Pick()
                    .FromAssemblyNamed("MyProj.Presentation")
                    .Configure(delegate(ComponentRegistration c)
{ return c.LifeStyle.Transient; })
                    .If(delegate(Type s) { return s.Name.EndsWith
("Presenter") && s.IsGenericType == false; })
                   );

Paul
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to