Eternet.Mediator.Generator 3.1.42

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

Eternet.Mediator.Generator

Source generator package for production pipeline execution in Eternet.Mediator.

Installation

dotnet add package Eternet.Mediator.Generator

Use it as an analyzer/source-generator package in projects that generate mediator pipelines.

Runtime Ownership

Each assembly that declares [GenerateExecutePipeline<...>] must reference a pipeline generator so it can emit its own pipeline executors and StepsResults partials. In multi-assembly hosts, only one assembly should own the concrete mediator runtime (Mediator.Mediator, MediatorOptions, and AddMediator).

Prefer Eternet.Mediator.Pipeline.Generator for assemblies that need pipeline generation but should not own the runtime:

dotnet add package Eternet.Mediator.Pipeline.Generator

It emits pipeline executors, StepsResults, and pipeline registration extensions only.

The host/runtime owner can then include the pipeline-only assembly in TargetAssemblies:

services.AddMediator(options =>
{
    options.TargetAssemblies =
    [
        typeof(HostServiceRegistration).Assembly,
        typeof(FeatureFromPipelineOnlyAssembly).Assembly
    ];
});

TargetAssemblies controls handler discovery for the generated runtime. It does not generate pipeline code for other assemblies.

Breaking Changes in 3.0.0

Eternet.Mediator.Generator 3.0.0 emits code against the new generated runtime facade.

  • Generated executors no longer declare or pass ScopedStates.
  • Generated code uses an assembly-local generated runtime helper backed by GeneratedBindingRuntime.
  • request.StepsResults is the supported developer-facing result model.
  • Applications or tests that still depend on public ScopedStates-based generated output must stay on 2.x until migrated.

Migration guide: ../docs/scoped-states-breaking-change-v3.md

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

This package has 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
3.1.42 0 5/15/2026
3.1.41 48 5/14/2026
3.1.40 74 5/13/2026
3.1.39 92 5/12/2026
3.1.38 93 5/11/2026
3.1.37 102 5/10/2026
3.1.36 90 5/10/2026
3.1.35 101 5/9/2026
3.1.34 107 5/8/2026
3.1.33 103 5/8/2026
3.1.32 96 5/7/2026
3.1.31 113 5/7/2026
3.1.30 90 5/6/2026
3.1.29 121 5/5/2026
3.1.28 89 5/4/2026
3.1.27 97 5/4/2026
3.1.26 90 5/3/2026
3.1.25 92 5/3/2026
3.1.24 98 5/3/2026
3.1.23 92 5/2/2026
Loading failed

Generated endpoint body request DTOs no longer copy compiler-reserved nullable metadata attributes from shared contracts.