Skip to content

Commit

Permalink
[service bus] Updating connection strings in migration guide to be co…
Browse files Browse the repository at this point in the history
…nsistent with readme (#17662)

Updating to the same string constant we use elsewhere in the SDK for samples.

Completes #17656
  • Loading branch information
richardpark-msft authored Nov 19, 2020
1 parent 09ffa84 commit 000849c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sdk/servicebus/azure-messaging-servicebus/migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ message directly without having to convert it to bytes first. The snippet below

// create the sync sender via the builder and its sub-builder
ServiceBusSenderClient sender = new ServiceBusClientBuilder()
.connectionString("connection string")
.connectionString("<< CONNECTION STRING FOR THE SERVICE BUS NAMESPACE >>")
.sender()
.queueName("my-queue")
.buildClient();
Expand All @@ -197,7 +197,7 @@ send. This uses the sync sender as well.
```java
// create the sync sender via the builder and its sub-builder
ServiceBusSenderClient sender = new ServiceBusClientBuilder()
.connectionString("connection string")
.connectionString("<< CONNECTION STRING FOR THE SERVICE BUS NAMESPACE >>")
.sender()
.queueName("my-queue")
.buildClient();
Expand Down Expand Up @@ -301,7 +301,7 @@ Consumer<ServiceBusErrorContext> processError = errorContext -> {

// create the processor client via the builder and its sub-builder
ServiceBusProcessorClient processorClient = new ServiceBusClientBuilder()
.connectionString("connection-string")
.connectionString("<< CONNECTION STRING FOR THE SERVICE BUS NAMESPACE >>")
.processor()
.queueName("queue-name")
.processMessage(processMessage)
Expand Down Expand Up @@ -341,7 +341,7 @@ Consumer<ServiceBusErrorContext> processError = errorContext -> {

// create the processor client via the builder and its sub-builder
ServiceBusProcessorClient processorClient = new ServiceBusClientBuilder()
.connectionString("connection-string")
.connectionString("<< CONNECTION STRING FOR THE SERVICE BUS NAMESPACE >>")
.sessionProcessor()
.queueName("queue-name")
.maxConcurrentSessions(3)
Expand All @@ -363,7 +363,7 @@ While the below code uses `acceptSession()` that takes a sessionId, you can also

```java
ServiceBusSessionReceiverClient sessionClient = new ServiceBusClientBuilder()
.connectionString("connection string")
.connectionString("<< CONNECTION STRING FOR THE SERVICE BUS NAMESPACE >>")
.sessionReceiver()
.queueName("queue")
.buildClient();
Expand Down

0 comments on commit 000849c

Please sign in to comment.