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?

Profile name
  • 153
  • 7
  • Try uninstalling and removing existing `Azure.Messaging.ServiceBus` dlls first and then reinstall it again. – SwethaKandikonda May 05 '22 at 07:09
  • you can either navigate to **Tools > Nuget Package Manager > Manage NuGet Packages for solution** or use `Uninstall-Package Azure.Messaging.ServiceBus` command from your package manager solution – SwethaKandikonda May 05 '22 at 07:23

2 Answers2

1

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.

Kish1729
  • 53
  • 4
0

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.

SwethaKandikonda
  • 7,513
  • 2
  • 4
  • 18