def queue_message(self, message):
        """Queue a message to be sent later.

        This operation should be followed up with send_pending_messages. If neither the Sender nor the message
        has a session ID, a `ValueError` will be raised.

        :param message: The message to be sent.
        :type message: ~azure.servicebus.Message

        Example:
            .. literalinclude:: ../examples/test_examples.py
                :start-after: [START queue_and_send_session_messages]
                :end-before: [END queue_and_send_session_messages]
                :language: python
                :dedent: 4
                :caption: Put the message to be sent later in the queue

        """
        if not self.session_id and not message.properties.group_id:
            raise ValueError("Message must have Session ID.")
        super(SessionSender, self).queue_message(message)
def queue_message(self, message):
        """Queue a message to be sent later.

        This operation should be followed up with send_pending_messages. If neither the Sender nor the message
        has a session ID, a `ValueError` will be raised.

        :param message: The message to be sent.
        :type message: ~azure.servicebus.Message

        Example:
            .. literalinclude:: ../examples/test_examples.py
                :start-after: [START queue_and_send_session_messages]
                :end-before: [END queue_and_send_session_messages]
                :language: python
                :dedent: 4
                :caption: Put the message to be sent later in the queue

        """
        if not self.session_id and not message.properties.group_id:
            raise ValueError("Message must have Session ID.")
        super(SessionSender, self).queue_message(message)
def queue_message ( self , message ) : if not self . session_id and not message . properties . group_id : raise ValueError ( "Message must have Session ID." ) super ( SessionSender , self ) . queue_message ( message )
Queue a message to be sent later.

        This operation should be followed up with send_pending_messages. If neither the Sender nor the message
        has a session ID, a `ValueError` will be raised.

        :param message: The message to be sent.
        :type message: ~azure.servicebus.Message

        Example:
            .. literalinclude:: ../examples/test_examples.py
                :start-after: [START queue_and_send_session_messages]
                :end-before: [END queue_and_send_session_messages]
                :language: python
                :dedent: 4
                :caption: Put the message to be sent later in the queue
Queue a message to be sent later .