Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
    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)
Exemplo n.º 3
0
 def _message_send(self, msg, headers=None, **kwargs):
     return ProcessRPCResponseEndpointUnit.send(self, msg, headers,
                                                **kwargs)
Exemplo n.º 4
0
 def _message_send(self, msg, headers=None, **kwargs):
     return ProcessRPCResponseEndpointUnit.send(self, msg, headers, **kwargs)