Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServiceBus - Track2 - Explicitly stringify message prints in samples per manual doc pass recommendation #12709

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


async def process_message(message):
print(message)
print(str(message))


def example_create_servicebus_client_async():
Expand Down Expand Up @@ -206,14 +206,14 @@ async def example_send_and_receive_async():
async with servicebus_receiver:
messages = await servicebus_receiver.peek_messages()
for message in messages:
print(message)
print(str(message))
# [END peek_messages_async]

# [START receive_async]
async with servicebus_receiver:
messages = await servicebus_receiver.receive_messages(max_wait_time=5)
for message in messages:
print(message)
print(str(message))
await message.complete()
# [END receive_async]

Expand All @@ -240,7 +240,7 @@ async def example_receive_deferred_async():
messages = await servicebus_receiver.receive_messages(max_wait_time=5)
for message in messages:
deferred_sequenced_numbers.append(message.sequence_number)
print(message)
print(str(message))
await message.defer()

received_deferred_msg = await servicebus_receiver.receive_deferred_messages(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


def process_message(message):
print(message)
print(str(message))


def example_create_servicebus_client_sync():
Expand Down Expand Up @@ -213,7 +213,7 @@ def example_send_and_receive_sync():
with servicebus_receiver:
messages = servicebus_receiver.peek_messages()
for message in messages:
print(message)
print(str(message))
# [END peek_messages_sync]

# [START auto_lock_renew_message_sync]
Expand All @@ -232,7 +232,7 @@ def example_send_and_receive_sync():
with servicebus_receiver:
messages = servicebus_receiver.receive_messages(max_wait_time=5)
for message in messages:
print(message)
print(str(message))
message.complete()
# [END receive_sync]

Expand Down Expand Up @@ -269,7 +269,7 @@ def example_receive_deferred_sync():
messages = servicebus_receiver.receive_messages(max_wait_time=5)
for message in messages:
deferred_sequenced_numbers.append(message.sequence_number)
print(message)
print(str(message))
message.defer()

received_deferred_msg = servicebus_receiver.receive_deferred_messages(
Expand Down