DcsvIo.D2.Headers.Common 0.1.1

dotnet add package DcsvIo.D2.Headers.Common --version 0.1.1
                    
NuGet\Install-Package DcsvIo.D2.Headers.Common -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.Common" 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.Common" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="DcsvIo.D2.Headers.Common" />
                    
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.Common --version 0.1.1
                    
#r "nuget: DcsvIo.D2.Headers.Common, 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.Common@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.Common&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=DcsvIo.D2.Headers.Common&version=0.1.1
                    
Install as a Cake Tool

DcsvIo.D2.Headers.Common

Cross-transport D2 wire-protocol headers — entries with applicability count ≥ 2 (headers that appear identically on multiple transports). Codegen-emitted from the headers contract spec via DcsvIo.D2.Headers.SourceGen (filtered with applicability.Length >= 2). Mirrors the TypeScript package @dcsv-io/d2-headers-common at byte-equal wire values; parity is asserted by shared contract tests.

Install

dotnet add package DcsvIo.D2.Headers.Common

Public API

Member Type Purpose
CommonHeaders.PROPAGATED_CONTEXT const string "x-d2-context" Base64url-of-JSON propagated context envelope (HTTP + gRPC + AMQP)
CommonHeaders.TRACEPARENT const string "traceparent" W3C Trace Context (HTTP + gRPC + AMQP)
CommonHeaders.TRACESTATE const string "tracestate" W3C tracestate (HTTP + gRPC + AMQP)
CommonHeaders.AllCommonHeaders IReadOnlyList<string> All wire values in constName order — useful for cross-spec consistency tests

(Catalog is codegen-emitted; the table above lists today's three cross-transport entries. New cross-transport entries appear here automatically when added to the spec.)

When to reach for this catalog

Use DcsvIo.D2.Headers.Common when the consumer is transport-agnostic — e.g. a tracing utility that handles traceparent / tracestate regardless of whether the request arrived over HTTP, gRPC, or AMQP. Transport-specific consumers should reach for DcsvIo.D2.Headers.Http, DcsvIo.D2.Headers.Amqp, or DcsvIo.D2.Headers.Grpc instead — those catalogs include the cross-transport entries inline at identical wire values, so a single using covers everything that transport's pipeline can encounter.

Spec contract

The headers contract spec is the single source of truth. Cross-transport entries appear in CommonHeaders and every per-transport catalog whose applicability array contains the relevant transport, all at identical wire values (codegen-guaranteed and verified by header catalog consistency tests).

Dependencies

  • DcsvIo.D2.Headers.SourceGen (build-time analyzer; OutputItemType="Analyzer" + ReferenceOutputAssembly="false")

No runtime dependencies — pure constants.

Sister packages: DcsvIo.D2.Headers.Http, DcsvIo.D2.Headers.Amqp, 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

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.1 112 7/17/2026
0.1.0 108 7/17/2026