Skip to content

Commit f5db9f6

Browse files
Header customizations in Version 8 and above (#7013)
* Update header docs * Add upgrade guide * Apply suggestions from code review Co-authored-by: Mauro Servienti <[email protected]> --------- Co-authored-by: Mauro Servienti <[email protected]>
1 parent 7525e5b commit f5db9f6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

nservicebus/recoverability/configure-error-handling.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ include: configurationWarning
3030

3131
## Error message header customizations
3232

33-
Before a message is moved to the error queue it is possible to inspect and modify its headers including [error forwarding headers](/nservicebus/messaging/headers.md#error-forwarding-headers).
33+
Before a message is moved to the error queue, it is possible to inspect and modify the [error forwarding headers](/nservicebus/messaging/headers.md#error-forwarding-headers).
34+
35+
> [!WARNING]
36+
> Before Version 8, modifying existing headers on the failed message was possible. Starting in Version 8, use a [recoverability pipeline behavior](/nservicebus/recoverability/pipeline.md) to get full access to all headers. See the [upgrade guide](/nservicebus/upgrades/7to8/#header-manipulation-for-failed-messages) for more information.
3437
3538
The following snippet shows how to configure header customizations and perform header value modification.
3639

nservicebus/upgrades/7to8/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,10 @@ endpointConfiguration.EnableOutbox();
203203

204204
`ITransportReceiveContext.AbortReceiveOperation` has been deprecated in favor of throwing an [`OperationCanceledException`](https://docs.microsoft.com/en-us/dotnet/api/system.operationcanceledexception). This will preserve the NServiceBus version 7 behavior of immediately retrying the message without invoking [recoverability](/nservicebus/recoverability).
205205

206+
## Header manipulation for failed messages
207+
208+
In NServiceBus Version 8 the [header customization API](/nservicebus/recoverability/configure-error-handling.md#error-message-header-customizations) only allows manipulation of [error forwarding headers](/nservicebus/messaging/headers.md#error-forwarding-headers). Use the new [recoverability pipeline](/nservicebus/recoverability/pipeline.md) to get access to all headers on the failed message.
209+
206210
## Renamed extension method types
207211

208212
The following static extension method types have been renamed:

0 commit comments

Comments
 (0)