Microsoft.Azure.ServiceBus 5.2.0 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET Standard 2.0
Suggested Alternatives

Azure.Messaging.ServiceBus

Additional Details

Please note, a newer package is available at https://nuget.org/packages/Azure.Messaging.ServiceBus as of 11/2020.
While this package will continue to receive critical bug fixes, we strongly encourage you to upgrade.
See the Migration Guide at https://aka.ms/azsdk/net/migrate/sb for more details.

Install-Package Microsoft.Azure.ServiceBus -Version 5.2.0
dotnet add package Microsoft.Azure.ServiceBus --version 5.2.0
<PackageReference Include="Microsoft.Azure.ServiceBus" Version="5.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Microsoft.Azure.ServiceBus --version 5.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Microsoft.Azure.ServiceBus, 5.2.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Microsoft.Azure.ServiceBus as a Cake Addin
#addin nuget:?package=Microsoft.Azure.ServiceBus&version=5.2.0

// Install Microsoft.Azure.ServiceBus as a Cake Tool
#tool nuget:?package=Microsoft.Azure.ServiceBus&version=5.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Azure Service Bus client library for .NET

Please be aware that a newer package, Azure.Messaging.ServiceBus is available as of November 2020. While this package will continue to receive critical bug fixes, we strongly encourage upgrading for new development. Please see the migration guide for more details.

Azure Service Bus allows you to build applications that take advantage of asynchronous messaging patterns using a highly-reliable service to broker messages between producers and consumers. Azure Service Bus provides flexible, brokered messaging between client and server, along with structured first-in, first-out (FIFO) messaging, and publish/subscribe capabilities with complex routing.

This directory contains the open source subset of the .NET SDK. For documentation of the complete Azure SDK, please see the Microsoft Azure .NET Developer Center.

Use the client library for Azure Service Bus to:

  • Transfer business data: leverage messaging for durable exchange of information, such as sales or purchase orders, journals, or inventory movements.

  • Decouple applications: improve reliability and scalability of applications and services, relieving senders and receivers of the need to be online at the same time.

  • Control how messages are processed: support traditional competing consumers for messages using queues or allow each consumer their own instance of a message using topics and subscriptions.

  • Implement complex workflows: message sessions support scenarios that require message ordering or message deferral.

Source code | Package (NuGet) | API reference documentation | Product documentation

Getting started

The complete Microsoft Azure SDK can be downloaded from the Microsoft Azure Downloads Page and ships with support for building deployment packages, integrating with tooling, rich command line tooling, and more.

If you are not already familiar with Azure Service Bus, please review: What is Azure Service Bus.

For the best development experience, developers should use the official Microsoft NuGet packages for libraries. NuGet packages are regularly updated with new functionality and hotfixes.

Prerequisites

  • Microsoft Azure Subscription: To call Microsoft Azure services, including Azure Service Bus, you need to first create an account. If you do not have an existing Azure account, you may sign up for a free trial or use your MSDN subscriber benefits.

  • The Azure Service Bus client library shares the same Prerequisites as the Microsoft Azure SDK for .NET.

Samples

Code samples for the Azure Service Bus client library that detail how to get started and how to implement common scenarios can be found in the following locations:

To build

For information on building the Azure Service bus client library, please see Building the Microsoft Azure SDK for .NET

Running tests

  1. Deploy the Azure Resource Manager template located at sdk/servicebus/Microsoft.Azure.ServiceBus/assets/azure-deploy-test-dependencies.json by clicking the following button:

    <a href="https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-sdk-for-net%2Fmaster%2Fsdk%2Fservicebus%2FMicrosoft.Azure.ServiceBus%2Fassets%2Fazure-deploy-test-dependencies.json" target="_blank"> <img src="http://azuredeploy.net/deploybutton.png"/> </a>

    Running the above template will provision a standard Service Bus namespace along with the required entities to successfully run the unit tests.

  2. Add an Environment Variable named SERVICE_BUS_CONNECTION_STRING and set the value as the connection string of the newly created namespace. Please note that if you are using Visual Studio, you must restart Visual Studio in order to use new Environment Variables.

Once you have completed the above, you can run dotnet test from the /sdk/servicebus/Microsoft.Azure.ServiceBus/tests directory.

Development history

For additional insight and context, the development, release, and issue history for the Azure Service Bus client library will continue to be available in read-only form, located in the stand-alone Azure Service Bus .NET repository.

Versioning information

The Azure Service Bus client library uses the semantic versioning scheme.

Target frameworks

For information about the target frameworks of the Azure Service Bus client library, please refer to the Target Frameworks of the Microsoft Azure SDK for .NET.

Contributing

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Additional documentation

Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (303)

Showing the top 5 NuGet packages that depend on Microsoft.Azure.ServiceBus:

Package Downloads
Microsoft.Azure.WebJobs.ServiceBus The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Package Description

Foundatio.AzureServiceBus The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

Pluggable foundation blocks for building distributed apps.

BumperLane.Tenant.Service.Client

BumperLane service client.

DotNetCore.CAP.AzureServiceBus

Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern.

Microsoft.Azure.DurableTask.ServiceBus The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package provides a C# based durable task framework for writing long running applications.

GitHub repositories (35)

Showing the top 5 popular GitHub repositories that depend on Microsoft.Azure.ServiceBus:

Repository Stars
bitwarden/server
The core infrastructure backend (API, database, Docker, etc).
dotnetcore/CAP
Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
ServiceStack/ServiceStack
Thoughtfully architected, obscenely fast, thoroughly enjoyable web services for all
danielgerlag/workflow-core
Lightweight workflow engine for .NET Standard
Azure/azure-functions-host
The host/runtime that powers Azure Functions
Version Downloads Last updated
5.2.0 1,545,978 11/8/2021
5.1.3 4,722,491 4/19/2021
5.1.2 2,845,389 2/25/2021
5.1.1 1,890,047 1/13/2021
5.1.0 2,232,153 11/20/2020
5.0.0 4,819,270 9/11/2020
4.2.1 3,202,554 1/15/2021
4.2.0 1,472,334 9/15/2020
4.1.3 7,797,458 4/17/2020
4.1.2 2,505,782 3/3/2020
4.1.1 9,810,674 11/9/2019
4.1.0 750,903 10/21/2019
4.0.0 2,894,014 8/8/2019
3.4.0 5,512,582 3/26/2019
3.3.0 2,527,770 1/18/2019
3.2.1 2,467,366 12/14/2018
3.2.0 661,288 11/27/2018
3.1.1 1,474,213 9/29/2018
3.1.0 1,265,930 8/10/2018
3.1.0-preview 62,393 6/28/2018
3.0.2 3,840,737 5/31/2018
3.0.1.16 96,797 5/23/2018
3.0.0 364,436 5/15/2018
3.0.0-preview-02 47,471 2/23/2018
3.0.0-preview-01 22,674 12/16/2017
2.0.0 2,895,024 10/12/2017
1.0.0 437,489 8/11/2017
1.0.0-RC1 4,439 8/3/2017
0.0.7-preview 8,561 7/14/2017
0.0.6-preview 12,216 6/2/2017
0.0.5-preview 14,945 5/16/2017
0.0.3-preview 22,357 4/13/2017
0.0.2-preview 34,927 4/3/2017