What is the purpose of UseSingleInterfaceProxy property?

3 views
Skip to first unread message

Krzysztof Koźmic

unread,
Mar 1, 2009, 5:32:18 AM3/1/09
to castle-pro...@googlegroups.com
Hi,

There's a property on ProxyGenerationOptions called
UseSingleInterfaceProxy that is not used anywhere (except for test that
test eqality).
What is the purpose of this property? Is it a leftover from some past
refactoring?

cheers

Krzysztof

Jonathon Rossi

unread,
Mar 1, 2009, 5:38:00 AM3/1/09
to castle-pro...@googlegroups.com
It seems that way.

There is this comment in the changes.txt:
"Moved the UseSingleInterfaceProxy from Core.ComponentModel to ProxyGeneratorOptions."
--
Jono

Krzysztof Koźmic

unread,
Mar 1, 2009, 7:25:28 AM3/1/09
to castle-pro...@googlegroups.com
It was introduced by Hammett in rev 3834 where he reverted to rev 3664

I don't know what was the purpose of this, but if its not being used
anymore I vote for removing it. There's no point in keeping dead public
API members.

Krzysztof

Jonathon Rossi pisze:
.



Craig Neuwirt

unread,
Mar 1, 2009, 8:18:23 AM3/1/09
to castle-pro...@googlegroups.com
It is being used to limit proxying the the specified service interface and not traverse the implementation hierarchy for
interfaces.  It is used in SynchronizeFacility and other facilities that deal with WinForm components and such.

thanks,
  craig

2009/3/1 Krzysztof Koźmic <krzyszto...@gmail.com>

Jonathon Rossi

unread,
Mar 1, 2009, 8:30:09 AM3/1/09
to castle-pro...@googlegroups.com
So I guess we need a decent XML comment on the property then :)

2009/3/1 Craig Neuwirt <cneu...@gmail.com>



--
Jono

Craig Neuwirt

unread,
Mar 1, 2009, 8:38:49 AM3/1/09
to castle-pro...@googlegroups.com
Ahh.  The one in DP2 can be removed.  The one I was talking about is just used in Castle.MicroKernel :-)

2009/3/1 Jonathon Rossi <jo...@jonorossi.com>

Krzysztof Koźmic

unread,
Mar 1, 2009, 8:41:41 AM3/1/09
to castle-pro...@googlegroups.com
Craig Neuwirt pisze:
Ahh.  The one in DP2 can be removed.  The one I was talking about is just used in Castle.MicroKernel :-)
Right, I just noticed that there is another in ProxyOptions class :)

Krzysztof

Craig Neuwirt

unread,
Mar 1, 2009, 8:47:15 AM3/1/09
to castle-pro...@googlegroups.com
It must have been leftover from the move so can be removed.

Cheers,
Reply all
Reply to author
Forward
0 new messages