Is there anyway to get the Resolve Arguments passed through?

container.Resolve<IService>(new { parameterForFactoryConstructor =
"ARunTimeValue" }
at the moment these aren't available to the FactoryProxy from the
extension method, so it can't pass it on.


On Feb 19, 11:12 pm, mausch <[email protected]> wrote:
> With a little addition to those extension methods it can be done, 
> see:http://code.google.com/p/mausch/source/detail?r=144http://code.google.com/p/mausch/source/detail?r=145
>
> Although this is somewhat different from the xml config above, since
> the xml config resolves the factory by id and this extension resolves
> it by service type.
>
> On Feb 19, 2:59 am, Fabio Maulo <[email protected]> wrote:
>
> > See the first post of this thread for XML configuration.
>
> > I would like something like:
> > container.Register(Component.For<ISessionFactory>
> > ().Factory<ISessionFactoryProvider>(serviceFactory =>
> > serviceFactory.GetFactory("uNhAddIns")));
>
> > Extensions? patch? open a new issue ? or is available something
> > similar ?
>
> > Thanks.
>
> > On 7 ene, 07:10, "Germán Schuager" <[email protected]> wrote:
>
> > > Maybe you can use something from 
> > > here:http://bugsquash.blogspot.com/2008/12/castle-windsor-factory-method-s...
>
> > > On Tue, Jan 6, 2009 at 7:49 PM, Fabio Maulo <[email protected]> wrote:
>
> > > > Hi.
> > > > I would like to know which is the corresponding fluent-configuration
> > > > sentence for the follow xml configuration.
>
> > > >                        <component id="uNhAddIns.sessionFactory"
> > > >                                type="NHibernate.ISessionFactory,
> > > > NHibernate"
> > > >                                factoryId="sessionFactoryProvider"
> > > >                                factoryCreate="GetFactory">
> > > >                                <parameters>
> > > >                                        <factoryId>uNhAddIns</factoryId>
> > > >                                </parameters>
> > > >                        </component>
>
> > > > Thanks.
>
>

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