Eternet.Mediator.EndpointModel 1.0.4

Prefix Reserved
dotnet add package Eternet.Mediator.EndpointModel --version 1.0.4
                    
NuGet\Install-Package Eternet.Mediator.EndpointModel -Version 1.0.4
                    
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="Eternet.Mediator.EndpointModel" Version="1.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Eternet.Mediator.EndpointModel" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="Eternet.Mediator.EndpointModel" />
                    
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 Eternet.Mediator.EndpointModel --version 1.0.4
                    
#r "nuget: Eternet.Mediator.EndpointModel, 1.0.4"
                    
#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 Eternet.Mediator.EndpointModel@1.0.4
                    
#: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=Eternet.Mediator.EndpointModel&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=Eternet.Mediator.EndpointModel&version=1.0.4
                    
Install as a Cake Tool

Eternet.Mediator.EndpointModel

Stable endpoint transport descriptors, manifest contracts, readers, and build support used to move endpoint semantics from mediator contracts into downstream consumers without re-interpreting the contracts locally.

Public surface

This package is the narrow shared contract between the generator stack and downstream projection consumers.

It exposes:

  • EndpointManifest as the root transport artifact
  • EndpointDescriptor and related request/response/route DTOs
  • EndpointOperationSemantic for additive public API intent (Query, Create, Update, Delete, Upsert)
  • GatewayProjectionDescriptor for gateway-specific route metadata
  • EndpointManifestJson for serialization
  • EndpointRouteNormalizer for stable route normalization
  • ContractAssemblyEndpointManifestReader to read the generated manifest carrier from a compiled contracts assembly
  • EndpointManifestArtifact helpers for the sidecar file name and path

Build integration

When a contracts project sets:

<EternetGenerateEndpointManifest>true</EternetGenerateEndpointManifest>

the buildTransitive targets in this package:

  1. read the manifest embedded in the compiled *.Contracts.dll when available,
  2. fall back to reflection-based manifest reconstruction only for compatibility,
  3. emit <AssemblyName>.eternet.endpoint-model.json,
  4. copy that sidecar next to the built assembly,
  5. and include it in the produced .nupkg so downstream consumers restore it automatically.

Role in manifest-driven projection

The supported manifest-driven projection model is:

  1. Eternet.Mediator.EndpointManifest.Generator extracts endpoint semantics once from Roslyn symbols.
  2. The dedicated manifest generator emits an embedded manifest carrier into the contracts assembly.
  3. Eternet.Mediator.EndpointModel materializes that carrier as a sidecar artifact during build and pack.
  4. A downstream projector consumes the sidecar first, then the embedded carrier, and only falls back to reflection for older assemblies.

That keeps request binding, HTTP verb, route template, and gateway projection metadata authoritative in the contracts repo instead of rediscovering them downstream.

API semantic metadata

EndpointDescriptor.OperationSemantic carries the additive API semantic inferred from the public request contract.

Inference precedence is:

  1. explicit HTTP and route attributes
  2. public IEndpointQuery/Create/Update/Delete/Upsert interfaces
  3. legacy-compatible IApiQuery/Create/Update/Delete/Upsert interfaces
  4. legacy base-type inference
  5. legacy operation-name fallback

This means a contracts repo can opt into richer semantics without rewriting explicit transport attributes that already ship in production.

For compatibility, OperationSemantic = Upsert still projects to CrudOperation = Update in the manifest. Downstream consumers that understand the richer field can read OperationSemantic; older consumers can continue using CrudOperation.

More detail

See Endpoint Manifest Ecosystem for the end-to-end flow and repo responsibility split.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Eternet.Mediator.EndpointModel:

Package Downloads
Eternet.UserPreferences.Contracts

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 114 4/3/2026
1.0.3 83 4/2/2026
1.0.2 88 4/2/2026
1.0.0 86 4/2/2026