コード例 #1
0
ファイル: conversation.py プロジェクト: pkediyal/pyon
    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)
コード例 #2
0
ファイル: conversation.py プロジェクト: newbrough/pyon
    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)
コード例 #3
0
ファイル: conversation.py プロジェクト: pkediyal/pyon
 def _message_send(self, msg, headers=None, **kwargs):
     return ProcessRPCResponseEndpointUnit.send(self, msg, headers,
                                                **kwargs)
コード例 #4
0
ファイル: conversation.py プロジェクト: newbrough/pyon
 def _message_send(self, msg, headers=None, **kwargs):
     return ProcessRPCResponseEndpointUnit.send(self, msg, headers, **kwargs)