Hi all,
I have a common issue: inside handler method check if sender is authorized
and know who he/she is. And I faced with that providing some "additional"
parameters to request handler is very difficult. In spite of there are two
contexts (server and processor) they can't really change a soem_method_args
structure but they can be very useful is case of doing some preprocessing.
So, I suggest to forward callContext into methods of handler as very last
parameter.
A generated code might look like the following:
class SomeServiceIf {
public:
virtual ~ SomeServiceIf () {}
virtual void someMethod() = 0;
virtual void someMethod(void* context) {
someMetho(); // For backward compatibility
}
}
In this case I could access callContext and get out sender Info for instance
Does it even make sense or there is the easier way to do it?
Best regards,
Nikolay.