File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
articles/service-bus-messaging Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,11 @@ This section shows you how to create a .NET Core console application to send mes
115
115
// of the application, which is best practice when messages are being published or read
116
116
// regularly.
117
117
//
118
- // Create the clients that we'll use for sending and processing messages.
119
- client = new ServiceBusClient(connectionString);
118
+ // set the transport type to AmqpWebSockets so that the ServiceBusClient uses the port 443.
119
+ // If you use the default AmqpTcp, you will need to make sure that the ports 5671 and 5672 are open
120
+
121
+ var clientOptions = new ServiceBusClientOptions() { TransportType = ServiceBusTransportType.AmqpWebSockets };
122
+ client = new ServiceBusClient(connectionString, clientOptions);
120
123
sender = client.CreateSender(queueName);
121
124
122
125
// create a batch
You can’t perform that action at this time.
0 commit comments