Hi, Simon.
Please see my comments inline.
Thanks,
Raymond
----- Original Message -----
From: "Simon Laws" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, May 29, 2007 11:51 PM
Subject: Re: Wire binding selection?
Ok, Raymond, this is useful.
So what it does seem to come down to is binding selection. It's not clear
from your comment whether you believe this is already done somewhere or
whether this is a new piece of functinality that we need to add.
I think we need to fix some of the code to make it fully supported.
From what I see in the code I think we do need a way of marking which
binding is intended to be active between any particular reference/service
pair. When you say "Should it be done when we flatten the model?" do you
mean when the components that each reference targets are resolved or do
you
mean later on?.
I meant when the CompositeBuilder creates the model which reflects the
effective configuration of the assembly.
The issue I see at resoltuion time is that a reference holds bindings and
targets independently. So we could change the model to allow us to create
a
relationship between target and binding at this point. Alternatively we
can
make the change at wire generation time where we have the wire structures
to
hold this relationship. Can you think of scenarios where we don't want to
be
deterministic and include this information in the model?
We could do it either way. But to be consistent, maybe it's better to do it
before the wire generation.
Regards
Simon
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]