Nerdigy.Mediator.Abstractions 0.6.0

Suggested Alternatives

Nerdigy.Mediator.Contracts

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

Mediator

Nerdigy.Mediator is a mediator runtime for .NET, with support for request/response, notifications, and async streaming workflows.

Packages In This Repository

  • Nerdigy.Mediator.Abstractions: public contracts and delegate types
  • Nerdigy.Mediator: core mediator runtime, dispatch, pipelines, and publishers
  • Nerdigy.Mediator.DependencyInjection: DI registration, assembly scanning, and options

All projects currently target net10.0.

Quick Start

using Microsoft.Extensions.DependencyInjection;
using Nerdigy.Mediator.Abstractions;
using Nerdigy.Mediator.DependencyInjection;

var services = new ServiceCollection();

services.AddMediator(options =>
{
    options.RegisterServicesFromAssemblyContaining<PingHandler>();
});

await using var provider = services.BuildServiceProvider();
var mediator = provider.GetRequiredService<IMediator>();

var response = await mediator.Send(new PingQuery("hello"));
Console.WriteLine(response);

public sealed record PingQuery(string Message) : IRequest<string>;

public sealed class PingHandler : IRequestHandler<PingQuery, string>
{
    public Task<string> Handle(PingQuery request, CancellationToken cancellationToken)
    {
        return Task.FromResult($"PONG: {request.Message}");
    }
}

Repository Layout

  • src/Nerdigy.Mediator.Abstractions
  • src/Nerdigy.Mediator
  • src/Nerdigy.Mediator.DependencyInjection
  • test/Nerdigy.Mediator.UnitTests
  • test/Nerdigy.Mediator.IntegrationTests
  • bench/Nerdigy.Mediator.Benchmarks
  • docs/ (VitePress documentation site)

Common Commands

Run from repository root:

dotnet build Mediator.slnx
dotnet test Mediator.slnx
dotnet format --verify-no-changes
dotnet run -c Release --project bench/Nerdigy.Mediator.Benchmarks/Nerdigy.Mediator.Benchmarks.csproj

Docs site:

pnpm docs:dev
pnpm docs:build
pnpm docs:preview

What Is Implemented

  • Request/response and void-request dispatch (Send)
  • Notification fan-out (Publish) with sequential and parallel publisher strategies
  • Stream request dispatch (CreateStream)
  • Request and stream pipeline behaviors
  • Request and stream exception handlers, plus exception actions
  • Assembly scanning for handlers, processors, behaviors, and exception components

Documentation

Contributing Notes

  • Follow .editorconfig and namespace-to-path alignment (namespace == path).
  • Keep changes small and single-purpose.
  • Maintain independent implementation practices and do not copy source from external projects.

License

MIT

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.6.0 220 6/11/2026 0.6.0 is deprecated because it is no longer maintained.
0.5.0 151 5/18/2026
0.4.0 165 4/27/2026
0.3.0 436 3/2/2026
0.2.0 135 2/17/2026
0.1.0 139 2/8/2026