Conduit.Abstractions 0.1.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Conduit.Abstractions --version 0.1.0
                    
NuGet\Install-Package Conduit.Abstractions -Version 0.1.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="Conduit.Abstractions" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Conduit.Abstractions" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Conduit.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 Conduit.Abstractions --version 0.1.0
                    
#r "nuget: Conduit.Abstractions, 0.1.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 Conduit.Abstractions@0.1.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=Conduit.Abstractions&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Conduit.Abstractions&version=0.1.0
                    
Install as a Cake Tool

Conduit

Conduit is a next-generation .NET request pipeline framework — a from-scratch, Native AOT-safe alternative to MediatR built on zero-reflection, source-generator-first architecture.

Define immutable requests, write a single handler, call AddConduit(), and dispatch with ISender.Send. Missing handlers are compile-time errors, not runtime surprises.

Install

dotnet add package Conduit.DependencyInjection

Conduit.DependencyInjection brings in the core runtime packages and the source generator transitively.

Quickstart

using Conduit.Abstractions;
using Conduit.Core;
using Conduit.DependencyInjection;

// 1. Define an immutable request
public sealed record Ping(string Message) : IRequest<string>;

// 2. Implement exactly one handler
public sealed class PingHandler : IRequestHandler<Ping, string>
{
    public ValueTask<string> Handle(Ping request, CancellationToken cancellationToken)
        => ValueTask.FromResult($"Pong: {request.Message}");
}

// 3. Register (handlers discovered at compile time — zero reflection)
var services = new ServiceCollection();
services.AddConduit();
await using var sp = services.BuildServiceProvider();

// 4. Dispatch
var sender = sp.GetRequiredService<ISender>();
var result = await sender.Send(new Ping("hello"));
Console.WriteLine(result); // Pong: hello

ASP.NET Core Minimal API

var builder = WebApplication.CreateBuilder(args);
builder.Services.AddConduit();

var app = builder.Build();

app.MapGet("/ping", async (ISender sender, CancellationToken ct) =>
    await sender.Send(new Ping("from-api"), ct));

app.Run();

Why Conduit?

  • Zero reflection at runtime — dispatch and DI registration are generated
  • Native AOT / trim safe by construction
  • Compile-time safety — missing or duplicate handlers fail the build (CONDUIT001 / CONDUIT002)
  • Immutable-by-default requests (sealed record)
  • Split ISender / IPublisher contracts with clear failure semantics

Packages

Package Role
Conduit.Abstractions Contracts (IRequest<>, handlers, behaviors, notifications)
Conduit.Core ISender, IPublisher, exceptions
Conduit.Pipeline Delegate-chain pipeline primitives
Conduit.DependencyInjection AddConduit() + generator integration
Conduit.SourceGenerators Incremental generator (analyzer package)
Conduit.Analyzers Roslyn analyzers (missing handler, mutable request, …)
Conduit.Testing FakeSender and test helpers

Documentation

Full architecture design lives in docs/architecture/. MVP scope and release process are documented under ReleaseProcess/.

License

MIT — see LICENSE.

Product Compatible and additional computed target framework versions.
.NET 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.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