DcsvIo.D2.Headers.Amqp 0.1.1

dotnet add package DcsvIo.D2.Headers.Amqp --version 0.1.1
                    
NuGet\Install-Package DcsvIo.D2.Headers.Amqp -Version 0.1.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DcsvIo.D2.Headers.Amqp" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DcsvIo.D2.Headers.Amqp" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="DcsvIo.D2.Headers.Amqp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DcsvIo.D2.Headers.Amqp --version 0.1.1
                    
#r "nuget: DcsvIo.D2.Headers.Amqp, 0.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DcsvIo.D2.Headers.Amqp@0.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DcsvIo.D2.Headers.Amqp&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=DcsvIo.D2.Headers.Amqp&version=0.1.1
                    
Install as a Cake Tool

DcsvIo.D2.Headers.Amqp

D2 wire-protocol headers for the AMQP transport. Includes AMQP-only entries (content-type, x-proto-type, message-id, timestamp, x-d2-encryption-kid, x-d2-failure-reason) and cross-transport entries (x-d2-context, traceparent, tracestate) at identical wire values. Codegen-emitted from the headers contract spec via DcsvIo.D2.Headers.SourceGen (filtered with applicability.Contains("amqp")). Mirrors the TypeScript package @dcsv-io/d2-headers-amqp at byte-equal wire values; parity is asserted by shared contract tests.

Install

dotnet add package DcsvIo.D2.Headers.Amqp

Public API

Member Type Purpose
AmqpHeaders.CONTENT_TYPE const string "content-type" Always application/octet-stream for D2 messages
AmqpHeaders.ENCRYPTION_KID const string "x-d2-encryption-kid" Encryption key id duplicated from the encrypted frame for DLQ ops
AmqpHeaders.FAILURE_REASON const string "x-d2-failure-reason" DLQ failure metadata attached by the consumer on nack
AmqpHeaders.MESSAGE_ID const string "message-id" UUIDv7 message identifier
AmqpHeaders.PROPAGATED_CONTEXT const string "x-d2-context" Base64url-of-JSON propagated context envelope (cross-transport)
AmqpHeaders.PROTO_TYPE const string "x-proto-type" Fully-qualified proto type name
AmqpHeaders.TIMESTAMP const string "timestamp" Producer-set ISO 8601 UTC timestamp
AmqpHeaders.TRACEPARENT const string "traceparent" W3C Trace Context (cross-transport)
AmqpHeaders.TRACESTATE const string "tracestate" W3C tracestate (cross-transport)
AmqpHeaders.AllAmqpHeaders IReadOnlyList<string> All wire values in constName order

Header categories

  • Routing + observability: MESSAGE_ID, TIMESTAMP, CONTENT_TYPE, PROTO_TYPE
  • Cross-hop tracing: TRACEPARENT, TRACESTATE, PROPAGATED_CONTEXT
  • Encryption + DLQ ops: ENCRYPTION_KID, FAILURE_REASON

Headers MUST NOT carry user identity, scopes, fingerprints, or any other sensitive context — the broker stores headers as plaintext at rest. Sensitive identity that a consumer needs goes in the typed message body (encrypted via the descriptor's encryption domain when the type carries PII).

When to reach for this catalog

Use DcsvIo.D2.Headers.Amqp from any AMQP-context consumer — RabbitMQ publishers, subscribers, DLQ inspection tools. One using covers AMQP-only entries and cross-transport entries.

Spec contract

The headers contract spec is the single source of truth. Every entry whose applicability array contains "amqp" lives in this catalog.

Dependencies

  • DcsvIo.D2.Headers.SourceGen (build-time analyzer)

No runtime dependencies — pure constants.

Sister packages: DcsvIo.D2.Headers.Common, DcsvIo.D2.Headers.Http, DcsvIo.D2.Headers.Grpc.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DcsvIo.D2.Headers.Amqp:

Package Downloads
DcsvIo.D2.Messaging.RabbitMq

Default RabbitMQ implementation of the D2 messaging abstractions — publishing, subscribing, encryption frames, and dead-letter handling.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 116 7/17/2026
0.1.0 120 7/17/2026