it's there in 3.1. I was writing it from memory so I may have it slightly wrong
but there should be Dependency.OnSomething() method for this.
It's there to replace zoo the Property.ForKey, ServiceOverride.ForKey etc and
bring them all under a single roof
--
Krzysztof Kozmic
On Wednesday, 16 January 2013 at 2:04 PM, Scott_M wrote:
> One slight problem...with Dependency.OnParameter (unrecognized... I am using
> Windsor 3.1. Is this a 3.2 construct?). Changed it slightly:
>
> container.Register
> (
> Component.For<IHorizontalLogEntryFormatter>()
> .ImplementedBy<HorizontalLogEntryFormatter>()
> .LifeStyle.Transient
> .DependsOn(
> Property.ForKey("dateTimeFormat").Eq("MM/dd/yyyy
> hh:mm:ss K");
>
> );
>
>
> On Tuesday, January 15, 2013 9:51:10 PM UTC-6, Krzysztof Koźmic wrote:
> > .DependsOn(Dependency.OnParameter("dateTimeFormat", "MM/dd/yyyy hh:mm:ss
> > K"))
> >
> > --
> > Krzysztof Kozmic
> >
> >
> > On Wednesday, 16 January 2013 at 1:41 PM, Scott_M wrote:
> >
> > > I am trying to take an existing XML based component registration and
> > > write an equivalent code based installer. The xml registration looks
> > > something like this:
> > >
> > > <component id="HorizontalLogEntryFormatter" lifestyle="transient"
> > > service="Acme.Kernel.Logging.Int.IHorizontalLogEntryFormatter,
> > > Acme.Kernel.Logging.Int (http://Acme.Kernel.Logging.Int)"
> > > type="Acme.Kernel.Logging.Impl.HorizontalLogEntryFormatter,
> > > Acme.Kernel.Logging.Impl">
> > > <parameters>
> > > <dateTimeFormat>MM/dd/yyyy hh:mm:ss K</dateTimeFormat>
> > > </parameters>
> > > </component>
> > >
> > >
> > > How do you write this registration in c# code (specifically, the
> > > dateTimeFormat parameters)?
> > >
> > >
> > >
> > >
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Castle Project Users" group.
> > > To view this discussion on the web visit
> > > https://groups.google.com/d/msg/castle-project-users/-/SLuR2iBU1okJ.
> > > To post to this group, send email to [email protected]
> > > (javascript:).
> > > To unsubscribe from this group, send email to
> > > [email protected] (javascript:).
> > > For more options, visit this group at
> > > http://groups.google.com/group/castle-project-users?hl=en.
> >
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/castle-project-users/-/aK05-4iZdC0J.
> To post to this group, send email to [email protected]
> (mailto:[email protected]).
> To unsubscribe from this group, send email to
> [email protected]
> (mailto:[email protected]).
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
--
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.