Upgrade Version 7 to 8

Component: NServiceBus
This is a working document; there is currently no timeline for the release of NServiceBus version 8.0.

Support for external dependency injection containers

Support for external dependency injection containers is no longer provided by NServiceBus adapters for each container library. Instead, the NServiceBus.Extensions.DependencyInjection package provides the ability to use any container that conforms to the Microsoft.Extensions.DependencyInjection container abstraction.

The following adapter packages will no longer be provided:

Property injection

NServiceBus container adapters supported automatic property injection, this is not possible via Microsoft.Extensions.DependencyInjection and must be explicitly enabled using the native API of containers that supports it.

Support for external logging providers

Support for external logging providers is no longer provided by NServiceBus adapters for each logging framework. Instead, the NServiceBus.Extensions.Logging package provides the ability to use any logging provider that conforms to the Microsoft.Extensions.Logging abstraction.

The following provider packages will no longer be provided:

New gateway persistence API

The NServiceBus gateway has been moved to a separate NServiceBus.Gateway package and all gateway public APIs in NServiceBus are obsolete and will produce the following warning:

Gateway persistence has been moved to the NServiceBus.Gateway dedicated package. Will be treated as an error from version 8.0.0. Will be removed in version 9.0.0.

How to upgrade


Last modified