Setting up for multi-adaptors

5 views
Skip to first unread message

pongguru

unread,
Feb 8, 2012, 1:01:53 PM2/8/12
to structuremap-users
Let us say I have an interface 'IBuy'. This interface has few methods
a, b, c and this interface has multiple implementations like 'BuyA',
'BuyB', 'BuyC'. You can consider IBuy is an adapter that client uses
but has multiple implementations.

Like Evan asked here before, I have a condition where I need to use
only BuyA or sometimes BuyA & BuyB or sometimes BuyA & BuyC. The
results if I use BuyA only is a set. If I use BuyA and BuyB I will get
two sets of results. How can I set this through structure map so that
I can use muliple implementations for the same interface?
Reply all
Reply to author
Forward
0 new messages