RSB Subclassed Message Behavior

0 views
Skip to first unread message

Mike Nichols

unread,
Dec 21, 2009, 5:55:32 PM12/21/09
to Rhino Tools Dev
Were there some changes that would cause 'MyExtendedMessage' below to
be consumed twice?

public class MyMessage {}
public class MyExtendedMessage : MyMessage{}

with this consumer

public class MyConsumer :
ConsumerOf<MyMessage>,ConsumerOf<MyExtendedMessage>{
public void Consumer(MyMessage msg){...}
public void Consumer(MyExtendedMessage msg){...}
}

I can't figure out what else is causing a duplicated invocation and
wondered if some changes I saw in RSB might be slipping some style
assumptions implicitly.


Mike Nichols

unread,
Dec 21, 2009, 6:14:12 PM12/21/09
to Rhino Tools Dev
Sorry..I found a deep bug (subterranean actually) that has nothing do
with this. Still I took a peek at some old posts on base class
consumer stuff and thot that might be it.

Ayende Rahien

unread,
Dec 22, 2009, 1:51:24 AM12/22/09
to rhino-t...@googlegroups.com
Can you give us some more info on this?

> --
>
> You received this message because you are subscribed to the Google Groups "Rhino Tools Dev" group.
> To post to this group, send email to rhino-t...@googlegroups.com.
> To unsubscribe from this group, send email to rhino-tools-d...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rhino-tools-dev?hl=en.
>
>
>

Mike Nichols

unread,
Dec 22, 2009, 7:05:12 AM12/22/09
to rhino-t...@googlegroups.com
On the bug i had? It turned out to be unrelated to RSB, but the reason I was led to think it was do to subclass was because of this post http://groups.google.com/group/rhino-tools-dev/browse_thread/thread/89631dd53bc4ff69/46ff5b0c0066a2b2 and the message I was dealing with was subclassed....something I don't do very often.
Sorry if I wasted anyone's time.
mike
Reply all
Reply to author
Forward
0 new messages