Profile name
Profile name

Reputation: 193

ServiceBusClient is not present in Azure.Messaging.ServiceBus 7.8.0

I'm trying to migrate from Microsoft.Azure.ServiceBus to Azure.Messaging.ServiceBus

This was the previous implementation

final QueueClient sendClient = new QueueClient(new ConnectionStringBuilder(this.queueConnectionString, this.queueName), ReceiveMode.PEEKLOCK);

For Migration I'm referring to this and this, which says to make use of ServiceBusClient instead QueueClient, but ServiceBusClient is not present in Azure.Messaging.ServiceBus

What's the fix?

Upvotes: 0

Views: 676

Answers (2)

Kish1729
Kish1729

Reputation: 53

For the Java ServiceBus SDK, the migration guide can be found here. AFAIK, you don't need to delete jars. Just referring to the correct version in the pom file should work.

Upvotes: 1

SwethaKandikonda
SwethaKandikonda

Reputation: 8234

After reproducing from our end we could able to make this work, However The latest stable version of Azure.Messaging.ServiceBus is 7.7.0. If you are using the beta versions of 7.8.0, try using Install-Package Azure.Messaging.ServiceBus -Version 7.8.0-beta.2 or Install-Package Azure.Messaging.ServiceBus -Version 7.8.0-beta.1 while installing it. But before try uninstalling and removing existing Azure.Messaging.ServiceBus dlls first and then reinstall it again.

You can also refer to related samples from HERE.

Upvotes: 0

Related Questions