Skip to content

Commit f99f0b7

Browse files
committed
updated
1 parent 00421ed commit f99f0b7

File tree

2 files changed

+17
-11
lines changed

2 files changed

+17
-11
lines changed

articles/service-bus-messaging/service-bus-dotnet-get-started-with-queues.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ If you're new to the service, see [Service Bus overview](service-bus-messaging-o
3030
## [Connection String](#tab/connection-string)
3131
[!INCLUDE [service-bus-create-namespace-portal](./includes/service-bus-create-namespace-portal-passwordless.md)]
3232

33-
> [!IMPORTANT]
34-
> Note down the connection string to the namespace, the topic name, and the subscription name. You'll use them later in this tutorial.
35-
3633
## [Passwordless](#tab/passwordless)
3734
[!INCLUDE [service-bus-create-namespace-portal-passwordless](./includes/service-bus-create-namespace-portal-passwordless.md)]
3835

@@ -42,6 +39,10 @@ If you're new to the service, see [Service Bus overview](service-bus-messaging-o
4239

4340
[!INCLUDE [service-bus-create-queue-portal](./includes/service-bus-create-queue-portal.md)]
4441

42+
43+
> [!IMPORTANT]
44+
> Note down the connection string to the namespace, the queue name. You'll use them later in this tutorial.
45+
4546
## Send messages to the queue
4647

4748
This section shows you how to create a .NET console application to send messages to a Service Bus queue.
@@ -81,7 +82,7 @@ This section shows you how to create a .NET console application to send messages
8182
### [Connection string](#tab/connection-string)
8283
8384
> [!IMPORTANT]
84-
> Per the `TODO` comment, update the placeholder values in the code snippets with the values from the Service Bus you created.
85+
> Update placeholder values (`<NAMESPACE-CONNECTION-STRING>` and `<QUEUE-NAME>`) in the code snippet with actual values you noted down earlier.
8586
8687
* Creates a [ServiceBusClient](/dotnet/api/azure.messaging.servicebus.servicebusclient) object using the connection string.
8788
* Invokes the [CreateSender](/dotnet/api/azure.messaging.servicebus.servicebusclient.createsender) method on the [ServiceBusClient](/dotnet/api/azure.messaging.servicebus.servicebusclient) object to create a [ServiceBusSender](/dotnet/api/azure.messaging.servicebus.servicebussender) object for the specific Service Bus queue.

articles/service-bus-messaging/service-bus-dotnet-how-to-use-topics-subscriptions.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ If you're new to the service, see [Service Bus overview](service-bus-messaging-o
4040
## [Connection String](#tab/connection-string)
4141
[!INCLUDE [service-bus-create-namespace-portal](./includes/service-bus-create-namespace-portal-passwordless.md)]
4242

43-
> [!IMPORTANT]
44-
> Note down the connection string to the namespace, the topic name, and the subscription name. You'll use them later in this tutorial.
45-
4643
## [Passwordless](#tab/passwordless)
4744
[!INCLUDE [service-bus-create-namespace-portal-passwordless](./includes/service-bus-create-namespace-portal-passwordless.md)]
4845

@@ -52,6 +49,8 @@ If you're new to the service, see [Service Bus overview](service-bus-messaging-o
5249

5350
[!INCLUDE [service-bus-create-topic-subscription-portal](./includes/service-bus-create-topic-subscription-portal.md)]
5451

52+
> [!IMPORTANT]
53+
> Note down the connection string to the namespace, the topic name, and the subscription name. You'll use them later in this tutorial.
5554
5655
## Send messages to the topic
5756
This section shows you how to create a .NET console application to send messages to a Service Bus topic.
@@ -90,6 +89,9 @@ This section shows you how to create a .NET console application to send messages
9089
9190
## [Connection String](#tab/connection-string)
9291
92+
> [!IMPORTANT]
93+
> Update placeholder values (`<NAMESPACE-CONNECTION-STRING>` and `<TOPIC-NAME>`) in the code snippet with actual values you noted down earlier.
94+
9395
1. Creates a [ServiceBusClient](/dotnet/api/azure.messaging.servicebus.servicebusclient) object using the connection string to the namespace.
9496
1. Invokes the [CreateSender](/dotnet/api/azure.messaging.servicebus.servicebusclient.createsender) method on the `ServiceBusClient` object to create a [ServiceBusSender](/dotnet/api/azure.messaging.servicebus.servicebussender) object for the specific Service Bus topic.
9597
1. Creates a [ServiceBusMessageBatch](/dotnet/api/azure.messaging.servicebus.servicebusmessagebatch) object by using the [ServiceBusSender.CreateMessageBatchAsync](/dotnet/api/azure.messaging.servicebus.servicebussender.createmessagebatchasync).
@@ -346,6 +348,9 @@ In this section, you'll add code to retrieve messages from the subscription.
346348
347349
## [Connection String](#tab/connection-string)
348350
351+
> [!IMPORTANT]
352+
> Update placeholder values (`<NAMESPACE-CONNECTION-STRING>`, `<TOPIC-NAME>`, `<SUBSCRIPTION-NAME>`) in the code snippet with actual values you noted down earlier.
353+
349354
* Creates a [ServiceBusClient](/dotnet/api/azure.messaging.servicebus.servicebusclient) object using the connection string to the namespace.
350355
* Invokes the [CreateProcessor](/dotnet/api/azure.messaging.servicebus.servicebusclient.createprocessor) method on the `ServiceBusClient` object to create a [ServiceBusProcessor](/dotnet/api/azure.messaging.servicebus.servicebusprocessor) object for the specified Service Bus topic.
351356
* Specifies handlers for the [ProcessMessageAsync](/dotnet/api/azure.messaging.servicebus.servicebusprocessor.processmessageasync) and [ProcessErrorAsync](/dotnet/api/azure.messaging.servicebus.servicebusprocessor.processerrorasync) events of the `ServiceBusProcessor` object.
@@ -360,8 +365,8 @@ In this section, you'll add code to retrieve messages from the subscription.
360365
// regularly.
361366
//
362367
// Create the clients that we'll use for sending and processing messages.
363-
// TODO: Replace the <CONNECTION-STRING-VALUE> placeholder
364-
client = new ServiceBusClient("<CONNECTION-STRING-VALUE>">);
368+
// TODO: Replace the <NAMESPACE-CONNECTION-STRING> placeholder
369+
client = new ServiceBusClient("<NAMESPACE-CONNECTION-STRING>">);
365370
366371
// create a processor that we can use to process the messages
367372
// TODO: Replace the <TOPIC-NAME> and <SUBSCRIPTION-NAME> placeholders
@@ -487,8 +492,8 @@ In this section, you'll add code to retrieve messages from the subscription.
487492
// regularly.
488493
//
489494
// Create the clients that we'll use for sending and processing messages.
490-
// TODO: Replace the <CONNECTION-STRING-VALUE> placeholder
491-
client = new ServiceBusClient("<CONNECTION-STRING-VALUE>">);
495+
// TODO: Replace the <NAMESPACE-CONNECTION-STRING> placeholder
496+
client = new ServiceBusClient("<NAMESPACE-CONNECTION-STRING>">);
492497
493498
// create a processor that we can use to process the messages
494499
// TODO: Replace the <TOPIC-NAME> and <SUBSCRIPTION-NAME> placeholders

0 commit comments

Comments
 (0)