Azure.Messaging.ServiceBus 7.0.0-preview.2

Azure Service Bus is a fully managed enterprise integration message broker. Service Bus can decouple applications and services. Service Bus offers a reliable and secure platform for asynchronous transfer of data and state. This client library allows for both sending and receiving messages using Azure Service Bus. For more information about Service Bus, see

This is a prerelease version of Azure.Messaging.ServiceBus.
There is a newer version of this package available.
See the version list below for details.
Install-Package Azure.Messaging.ServiceBus -Version 7.0.0-preview.2
dotnet add package Azure.Messaging.ServiceBus --version 7.0.0-preview.2
<PackageReference Include="Azure.Messaging.ServiceBus" Version="7.0.0-preview.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Azure.Messaging.ServiceBus --version 7.0.0-preview.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Azure.Messaging.ServiceBus, 7.0.0-preview.2"
#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 Azure.Messaging.ServiceBus as a Cake Addin
#addin nuget:?package=Azure.Messaging.ServiceBus&version=7.0.0-preview.2&prerelease

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

Release Notes

### Acknowledgements
Thank you to our developer community members who helped to make the Service Bus client library better with their contributions and design input for this release:
- Daniel Marbach _([GitHub](
- Sean Feldman _([GitHub](
### Added
- Allow specifying a list of named sessions when using ServiceBusSessionProcessor
- Transactions/Send via support
- Add SessionInitializingAsync/SessionClosingAsync events in ServiceBusSessionProcessor
- Do not attempt to autocomplete messages with the processor if the user settled the message in their callback
- Add SendAsync overload accepting an IEnumerable of ServiceBusMessage
- Various performance improvements
_(A community contribution, courtesy of [danielmarbach](
- Improve the way exception stack traces are captured
_(A community contribution, courtesy of [danielmarbach](
### Breaking Changes
- Change from using a static factory method for creating a sendable message from a received message to instead
using a constructor
_(A community contribution, courtesy of [danielmarbach](
- CreateSessionProcessor parameter sessionId renamed to sessionIds (also changed from string to params string array).
- Remove cancellation token from CreateProcessor and CreateSessionProcessor
_(A community contribution, courtesy of [danielmarbach](
- Rename SendBatchAsync to SendAsync
- Add SenderOptions parameter to CreateSender method.

NuGet packages (32)

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

Package Downloads
Microsoft Azure WebJobs SDK ServiceBus Extension
HealthChecks.AzureServiceBus is the health check package for Azure EventHub, and Azure Service Bus Queues and Topics.
Azure Service Bus Transport for KnightBus
Communication module, that allows to send and receive messages from Azure Service Bus queues or Azure IoT Hub
A simplified library for using Azure Service Bus Queue and Pub/Sub patterns in .Net applications. This implementation targets .Net 5.0 and uses the Azure.Messaging.ServiceBus.

GitHub repositories (9)

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

Repository Stars
This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at or our versioned developer docs at
Enterprise HealthChecks for ASP.NET Core Diagnostics Package
The Service Bus Explorer allows users to connect to a Service Bus namespace and administer messaging entities in an easy manner. The tool provides advanced features like import/export functionality or the ability to test topic, queues, subscriptions, relay services, notification hubs and events hubs.
Benchmarks for ASP.NET Core
Elastic APM .NET Agent

Version History

Version Downloads Last updated
7.2.0-beta.2 3,946 4/9/2021
7.2.0-beta.1 8,658 3/9/2021
7.1.2 43,824 4/13/2021
7.1.1 122,685 3/11/2021
7.1.0 155,582 2/9/2021
7.0.1 113,512 1/12/2021
7.0.0 178,843 11/24/2020
7.0.0-preview.9 2,359 11/5/2020
7.0.0-preview.8 3,981 10/6/2020
7.0.0-preview.7 4,727 9/11/2020
7.0.0-preview.6 1,188 8/18/2020
7.0.0-preview.4 2,801 7/7/2020
7.0.0-preview.3 1,750 6/8/2020
7.0.0-preview.2 3,167 5/4/2020
7.0.0-preview.1 611 4/7/2020
Show less