-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
Description
Per discussion: #7 (comment)
CONCERN: Is this used to call the generic method of the
IConsume
? If yes, then I'd recommend extending IConsume to have a method accepting an object message, then default implementation in IConsume that would call the typed method. This would reduce the need for this reflection access here, we could just call it.
We might support different scenario.
A truly confident user could simply decide to deal with raw data, hence a basicIConsume
would be enough. Or he would rather prefer to work typed data and generics support, hence some sort of (memoized)reflections stuff should unavoidable. Some benchmark here might help in solving the dilemma of reflection adoption.