DKNet.SlimBus.Extensions 10.1.9

There is a newer version of this package available.
See the version list below for details.
dotnet add package DKNet.SlimBus.Extensions --version 10.1.9
                    
NuGet\Install-Package DKNet.SlimBus.Extensions -Version 10.1.9
                    
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="DKNet.SlimBus.Extensions" Version="10.1.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.SlimBus.Extensions" Version="10.1.9" />
                    
Directory.Packages.props
<PackageReference Include="DKNet.SlimBus.Extensions" />
                    
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 DKNet.SlimBus.Extensions --version 10.1.9
                    
#r "nuget: DKNet.SlimBus.Extensions, 10.1.9"
                    
#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 DKNet.SlimBus.Extensions@10.1.9
                    
#: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=DKNet.SlimBus.Extensions&version=10.1.9
                    
Install as a Cake Addin
#tool nuget:?package=DKNet.SlimBus.Extensions&version=10.1.9
                    
Install as a Cake Tool

DKNet.SlimBus.Extensions

NuGet NuGet Downloads

CQRS and messaging glue on top of SlimMessageBus, wired for EF Core — a lighter, result-based alternative to MediatR. Command/query handlers get fluent contracts, successful writes are auto-saved to your DbContext, and EF Core domain events are forwarded onto the bus.

Install

dotnet add package DKNet.SlimBus.Extensions

Features

  • Command contractsFluents.Requests.INoResponse / IWitResponse<TResponse>, with matching IHandler<> interfaces; auto-saves the DbContext after a successful handler, skips it on failure or null.
  • Query contractsFluents.Queries.IWitResponse<TResponse> and IWitPageResponse<TResponse> (paged, via X.PagedList.EF); queries never trigger auto-save.
  • Event consumersFluents.EventsConsumers.IHandler<TEvent> for reacting to messages/domain events.
  • Domain event publishingSlimBusEventPublisher forwards events raised by DKNet.EfCore.Events onto the bus, copying event AdditionalData into message headers.
  • Pluggable interceptors — auto-save is a standard SlimMessageBus IRequestHandlerInterceptor<,>; add your own for validation, logging, etc.
  • Transport-agnostic — brings no provider; plug in SlimMessageBus.Host.Memory, Azure Service Bus, or any other SlimMessageBus provider yourself.

Quick start

using DKNet.SlimBus.Extensions;
using FluentResults;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using SlimMessageBus.Host;
using SlimMessageBus.Host.Memory;
using SlimMessageBus.Host.Serialization.SystemTextJson;

services.AddDbContext<AppDbContext>(o => o.UseSqlServer(connectionString));
services.AddSlimBusEfCoreInterceptor<AppDbContext>();

services.AddSlimMessageBus(mbb => mbb
    .AddJsonSerializer()
    .AddServicesFromAssembly(typeof(Program).Assembly)
    .AddChildBus("Memory", bus => bus
        .WithProviderMemory()
        .AutoDeclareFrom(typeof(Program).Assembly)));

// Command
public record CreateProduct(string Name, decimal Price) : Fluents.Requests.IWitResponse<Guid>;

internal sealed class CreateProductHandler(AppDbContext db)
    : Fluents.Requests.IHandler<CreateProduct, Guid>
{
    public async Task<IResult<Guid>> OnHandle(CreateProduct request, CancellationToken cancellationToken)
    {
        var product = new Product(request.Name, request.Price);
        await db.Products.AddAsync(product, cancellationToken);
        return Result.Ok(product.Id); // DbContext is saved automatically after this returns
    }
}

Documentation

Full feature reference, configuration, and composition with DKNet.EfCore.Events / DKNet.EfCore.Repos: https://github.com/baoduy/DKNet/blob/dev/docs/Messaging/DKNet.SlimBus.Extensions.md

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.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on DKNet.SlimBus.Extensions:

Package Downloads
DKNet.AspCore.SlimBus

Package Description

DKNet.AspCore.Extensions

DKNet is an enterprise-grade .NET library collection focused on advanced EF Core extensions, dynamic predicate building, and the Specification pattern. It provides production-ready tools for building robust, type-safe, and testable data access layers, including dynamic LINQ support, LinqKit integration. Designed for modern cloud-native applications, DKNet enforces strict code quality, async best practices, and full documentation for all public APIs. Enterprise-grade .NET library suite for modern application development, featuring advanced EF Core extensions (dynamic predicates, specifications, LinqKit), robust Domain-Driven Design (DDD) patterns, and domain event support. DKNet empowers scalable, maintainable, and testable solutions with type-safe validation, async/await, XML documentation, and high code quality standards. Ideal for cloud-native, microservices, and enterprise architectures.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.1.10 0 8/22/2026
10.1.9 0 8/22/2026
10.1.8 0 8/21/2026
10.1.7 38 8/21/2026
10.1.6 39 8/21/2026
10.1.5 75 8/20/2026
10.1.4 67 8/20/2026
10.1.3 70 8/19/2026
10.1.2 81 8/19/2026
10.1.1 76 8/19/2026
10.0.36 78 8/18/2026
10.0.35 97 8/5/2026
10.0.34 92 8/5/2026
10.0.33 98 8/4/2026
10.0.32 333 8/3/2026
10.0.31 126 7/21/2026
10.0.30 114 7/21/2026
10.0.29 659 6/22/2026
10.0.27 186 5/22/2026
10.0.26 122 5/19/2026
Loading failed