Thanks.
Can you create an actual failing test?
Thanks
@k
--
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/-/M4VIrLskVH8J.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
Thanks.
Can you create an actual failing test?
Thanks
@k
On Jul 11, 2012 8:09 AM, "bling" <baile...@gmail.com> wrote:
the following works with 3.0, but throws an exception in 3.1var c = new WindsorContainer();c.Register(Classes.From(typeof(Dictionary<,>)).Pick().WithServiceBase().WithServiceAllInterfaces());i'm not sure what the actual issue is, but exception message complained about ICollection<KeyValuePair<,>> so i took a guess and was able to reproduce. a class similar to that signature does exist in my actual code.thanks,bling--
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/-/M4VIrLskVH8J.
To post to this group, send email to castle-project-users@googlegroups.com.
To unsubscribe from this group, send email to castle-project-users+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/f2QKPH2AibYJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/f2QKPH2AibYJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/castle-project-users/-/mSI1F8MzbNUJ.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
Yep, pretty much.
On Tuesday, July 10, 2012 11:56:18 PM UTC-4, Krzysztof Koźmic wrote:
Right,
so what you really want is not "All interfaces" but rather
"service interfaces" that would be like all interfaces but
filtering out "noise" that is all the ISerializable, IDisposable,
IComparable, IEnumerable<ValueType> etc?
@K
On 11/07/12 12:57 PM, bling wrote:
I don't.
The way I have my application is the typical:
* Register explicitly, i.e.
Component.For<IFoo>().ImplementedBy<Foo>()..., for things
that I need explicit.
* Then, some convention based things. Like
Classes.Pick().BasedOn<Bar>().WithServiceBase().
* Finally, the "catch all", which is
<mailto:baile...@gmail.com>> wrote:
the following works with 3.0, but throws an
exception in 3.1
var c = new WindsorContainer();
c.Register(Classes.From(typeof(Dictionary<,>)).Pick().WithServiceBase().WithServiceAllInterfaces());
i'm not sure what the actual issue is, but exception
message complained about
ICollection<KeyValuePair<,>> so i took a guess and
was able to reproduce. a class similar to that
signature does exist in my actual code.
thanks,
bling
--
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/-/M4VIrLskVH8J
To post to this group, send email to
To unsubscribe from this group, send email to
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/-/f2QKPH2AibYJ
<https://groups.google.com/d/msg/castle-project-users/-/f2QKPH2AibYJ>.
To post to this group, send email to
To unsubscribe from this group, send email to
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/-/mSI1F8MzbNUJ
<https://groups.google.com/d/msg/castle-project-users/-/mSI1F8MzbNUJ>.
To post to this group, send email to
To unsubscribe from this group, send email to
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
To post to this group, send email to
To unsubscribe from this group, send email to
correction: "...since i would *not* expect that to throw..."
On Wednesday, July 11, 2012 9:42:25 AM UTC-4, bling wrote:
that would work.
however, i'm more questioning in the intent of the scanning
registration API, since i would expect that to throw any kind of
exception. worst case should be that you don't have something
registered. if that can still be the case, then you can simply
ignore IEnumerable<ValueType> instead of throwing.
if that won't fly, you could also do a
WithServiceAllInterfaces(bool excludeSystemInterfaces = true)
thx!
p.s. i've logged the bug at
http://issues.castleproject.org/issue/IOC-347
<http://issues.castleproject.org/issue/IOC-347>, although if you
add a new WithService* then it'd be more of a feature request.
On Tuesday, July 10, 2012 6:09:48 PM UTC-4, bling wrote:
the following works with 3.0, but throws an exception in 3.1
var c = new WindsorContainer();
c.Register(Classes.From(typeof(Dictionary<,>)).Pick().WithServiceBase().WithServiceAllInterfaces());
i'm not sure what the actual issue is, but exception message
complained about ICollection<KeyValuePair<,>> so i took a
guess and was able to reproduce. a class similar to that
signature does exist in my actual code.
thanks,
bling
--
You received this message because you are subscribed to the Google
Groups "Castle Project Users" group.
To view this discussion on the web visit
To unsubscribe from this group, send email to
To post to this group, send email to
To unsubscribe from this group, send email to
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
To post to this group, send email to
To unsubscribe from this group, send email to
To unsubscribe from this group, send email to
<mailto:castle-project-users%2Bunsu...@googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
<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/-/kJsk4S5RkAoJ.
To post to this group, send email to
To unsubscribe from this group, send email to
which affects all forms of registration.
castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>>.
To unsubscribe from this group, send email to
castle-project-u...@googlegroups.com
<mailto:castle-project-users%2Bunsu...@googlegroups.com>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
<mailto:castle-project-users%252Buns...@googlegroups.com>>.
--
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/-/kJsk4S5RkAoJ
To post to this group, send email to
To unsubscribe from this group, send email to
<mailto:castle-project-users%2Bunsu...@googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
<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
To post to this group, send email to
To unsubscribe from this group, send email to
To unsubscribe from this group, send email to
--
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/-/kJsk4S5RkAoJ
<https://groups.google.com/d/msg/castle-project-users/-/kJsk4S5RkAoJ>.
To post to this group, send email to
To unsubscribe from this group, send email to
<mailto:castle-project-users%2Bunsu...@googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
<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/-/QKsGQAb3LhYJ.
To post to this group, send email to
To unsubscribe from this group, send email to
castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>>>.
To unsubscribe from this group, send email to
castle-project-u...@googlegroups.com
<mailto:castle-project-users%2Bunsu...@googlegroups.com>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
<mailto:castle-project-users%252Buns...@googlegroups.com>>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
<mailto:castle-project-users%252Buns...@googlegroups.com>
<mailto:castle-project-users%252Buns...@googlegroups.com
<mailto:castle-project-users%25252Bun...@googlegroups.com>>>.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
<http://groups.google.com/group/castle-project-users?hl=en>
<http://groups.google.com/group/castle-project-users?hl=en
<http://groups.google.com/group/castle-project-users?hl=en>>
<http://groups.google.com/group/castle-project-users?hl=en
<http://groups.google.com/group/castle-project-users?hl=en>
<http://groups.google.com/group/castle-project-users?hl=en
<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/-/kJsk4S5RkAoJ
<https://groups.google.com/d/msg/castle-project-users/-/kJsk4S5RkAoJ>
<https://groups.google.com/d/msg/castle-project-users/-/kJsk4S5RkAoJ
<https://groups.google.com/d/msg/castle-project-users/-/kJsk4S5RkAoJ>>.
To post to this group, send email to
<mailto:castle-pro...@googlegroups.com>>.
To unsubscribe from this group, send email to
castle-project-u...@googlegroups.com
<mailto:castle-project-users%2Bunsu...@googlegroups.com>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
<mailto:castle-project-users%252Buns...@googlegroups.com>>.
--
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/-/QKsGQAb3LhYJ
<https://groups.google.com/d/msg/castle-project-users/-/QKsGQAb3LhYJ>.
To post to this group, send email to
To unsubscribe from this group, send email to
<mailto:castle-project-users%2Bunsu...@googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
<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
To post to this group, send email to
To unsubscribe from this group, send email to
castle-project-users@googlegroups.com
<mailto:castle-project-users@googlegroups.com>
<mailto:castle-project-users@googlegroups.com
<mailto:castle-project-users@googlegroups.com>>
<mailto:castle-project-users@googlegroups.com
<mailto:castle-project-users@googlegroups.com>
<mailto:castle-project-users@googlegroups.com
<mailto:castle-project-users@googlegroups.com>>>.
To unsubscribe from this group, send email to
castle-project-users+unsub...@googlegroups.com
<mailto:castle-project-users%2Bunsu...@googlegroups.com>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
<mailto:castle-project-users%252Bunsubscribe@googlegroups.com>>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
<mailto:castle-project-users%252Bunsubscribe@googlegroups.com>
<mailto:castle-project-users%252Bunsubscribe@googlegroups.com
<mailto:castle-project-users%25252Bunsubscribe@googlegroups.com>>>.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
<http://groups.google.com/group/castle-project-users?hl=en>
<http://groups.google.com/group/castle-project-users?hl=en
<http://groups.google.com/group/castle-project-users?hl=en>>
<http://groups.google.com/group/castle-project-users?hl=en
<http://groups.google.com/group/castle-project-users?hl=en>
<http://groups.google.com/group/castle-project-users?hl=en
<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/-/kJsk4S5RkAoJ
<https://groups.google.com/d/msg/castle-project-users/-/kJsk4S5RkAoJ>
<https://groups.google.com/d/msg/castle-project-users/-/kJsk4S5RkAoJ
<https://groups.google.com/d/msg/castle-project-users/-/kJsk4S5RkAoJ>>.
To post to this group, send email to
<mailto:castle-project-users@googlegroups.com>>.
To unsubscribe from this group, send email to
--
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/-/QKsGQAb3LhYJ
<https://groups.google.com/d/msg/castle-project-users/-/QKsGQAb3LhYJ>.
To post to this group, send email to
To unsubscribe from this group, send email to
<mailto:castle-project-users%2Bunsu...@googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
<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/-/WezzrFNm9EUJ.
To post to this group, send email to
To unsubscribe from this group, send email to
i'm not suggesting that it's a good idea to do this. i just don't
think the container should impose /technical/ restrictions on its use.
castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>>>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>>>>.
To unsubscribe from this group, send email to
castle-project-u...@googlegroups.com
<mailto:castle-project-users%2Bunsu...@googlegroups.com>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
<mailto:castle-project-users%252Buns...@googlegroups.com>>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
<mailto:castle-project-users%252Buns...@googlegroups.com>
<mailto:castle-project-users%252Buns...@googlegroups.com
<mailto:castle-project-users%25252Bun...@googlegroups.com>>>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
<mailto:castle-project-users%252Buns...@googlegroups.com>
<mailto:castle-project-users%252Buns...@googlegroups.com
<mailto:castle-project-users%25252Bun...@googlegroups.com>>
<mailto:castle-project-users%252Buns...@googlegroups.com
<mailto:castle-project-users%25252Bun...@googlegroups.com>
<mailto:castle-project-users%25252Bun...@googlegroups.com <mailto:castle-project-users%2525252Bu...@googlegroups.com>>>>.
castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>
<mailto:castle-pro...@googlegroups.com
<mailto:castle-pro...@googlegroups.com>>>.
To unsubscribe from this group, send email to
castle-project-u...@googlegroups.com
<mailto:castle-project-users%2Bunsu...@googlegroups.com>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
<http://groups.google.com/group/castle-project-users?hl=en>
<http://groups.google.com/group/castle-project-users?hl=en
<http://groups.google.com/group/castle-project-users?hl=en>>
<http://groups.google.com/group/castle-project-users?hl=en
<http://groups.google.com/group/castle-project-users?hl=en>
<http://groups.google.com/group/castle-project-users?hl=en
<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/-/QKsGQAb3LhYJ
<https://groups.google.com/d/msg/castle-project-users/-/QKsGQAb3LhYJ>
<https://groups.google.com/d/msg/castle-project-users/-/QKsGQAb3LhYJ
<https://groups.google.com/d/msg/castle-project-users/-/QKsGQAb3LhYJ>>.
To post to this group, send email to
<mailto:castle-pro...@googlegroups.com>>.
To unsubscribe from this group, send email to
castle-project-u...@googlegroups.com
<mailto:castle-project-users%2Bunsu...@googlegroups.com>
<mailto:castle-project-users%2Bunsu...@googlegroups.com
<mailto:castle-project-users%252Buns...@googlegroups.com>>.
--
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/-/WezzrFNm9EUJ
<https://groups.google.com/d/msg/castle-project-users/-/WezzrFNm9EUJ>.
To post to this group, send email to
To unsubscribe from this group, send email to
<mailto:castle-project-users%2Bunsu...@googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
<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
To post to this group, send email to
To unsubscribe from this group, send email to