![]() |
Safir SDK Core
|
Interface to receive service requests. More...
#include <Safir/Dob/Consumer.h>
Public Member Functions | |
virtual | ~ServiceRequestBase () |
Virtual destructor is needed since we have virtual member functions. | |
virtual void | OnServiceRequest (const Safir::Dob::ServiceRequestProxy serviceRequestProxy, Safir::Dob::ResponseSenderPtr responseSender)=0 |
Called when a service request is received. | |
![]() | |
virtual | ~ConsumerBase () |
Interface to receive service requests.
|
virtual |
Virtual destructor is needed since we have virtual member functions.
|
pure virtual |
Called when a service request is received.
The receiver of the callback must send a response using the responseSender. It is allowed to store the responseSender and send the response later after this method has returned. The responseSender is a smart-pointer which means that it will handle deletion of the underlaying object on its own.
[in] | serviceRequestProxy | - Proxy object containing request object and meta information. |
[in] | responseSender | - Used to send the response for the received request. |