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 (53)

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.
Provides an Azure Service Bus transport for Rebus
Provides the core capability to use Azure Service Bus
Package Description

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.1 89,971 7/8/2021
7.2.0 88,657 6/22/2021
7.2.0-beta.3 8,865 5/12/2021
7.2.0-beta.2 16,307 4/9/2021
7.2.0-beta.1 16,321 3/9/2021
7.1.2 661,812 4/13/2021
7.1.1 332,820 3/11/2021
7.1.0 283,423 2/9/2021
7.0.1 177,518 1/12/2021
7.0.0 266,757 11/24/2020
7.0.0-preview.9 2,524 11/5/2020
7.0.0-preview.8 4,575 10/6/2020
7.0.0-preview.7 4,860 9/11/2020
7.0.0-preview.6 1,202 8/18/2020
7.0.0-preview.4 3,781 7/7/2020
7.0.0-preview.3 1,791 6/8/2020
7.0.0-preview.2 3,440 5/4/2020
7.0.0-preview.1 648 4/7/2020
Show less