def send(self, msg, headers=None, **kwargs): c = self.participant.get_conversation_endpoint(headers['conv-id']) if c: c.send(self.conv_type.client_role, msg, headers, **kwargs) self.participant.end_conversation_endpoint(c) else: #Try to be backward compatiable with non conversation endpoints ProcessRPCResponseEndpointUnit.send(self, msg, headers, **kwargs)
def send(self, msg, headers=None, **kwargs): c = self.participant.get_conversation_endpoint(headers["conv-id"]) if c: c.send(self.conv_type.client_role, msg, headers, **kwargs) self.participant.end_conversation_endpoint(c) else: # Try to be backward compatiable with non conversation endpoints ProcessRPCResponseEndpointUnit.send(self, msg, headers, **kwargs)
def _message_send(self, msg, headers=None, **kwargs): return ProcessRPCResponseEndpointUnit.send(self, msg, headers, **kwargs)