Cayaqui.Cqrs 0.4.21

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

Cayaqui.Cqrs

CQRS handler-pipeline decorators (logging) for the Cayaqui IHandler<,> pipeline. Kept separate from Cayaqui.Abstractions so that the zero-dependency core remains dependency-free.

Contenido

Tipo Descripción
LoggingHandlerDecorator<TIn, TResult> Outermost decorator: logging estructurado de entrada, éxito, fallo y excepciones no manejadas.

Instalación

dotnet add package Cayaqui.Cqrs

Uso típico

LoggingHandlerDecorator se registra automáticamente por AddCayaquiCqrs<TDbContext>() de Cayaqui.BuildingBlocks.EntityFrameworkCore. No requiere registro manual.

Si se necesita usar de forma aislada (sin EF Core):

services.AddScoped<IHandler<MyCommand, Result<string>>>(sp =>
    new LoggingHandlerDecorator<MyCommand, string>(
        sp.GetRequiredService<MyCommandHandler>(),
        sp.GetRequiredService<ILogger<LoggingHandlerDecorator<MyCommand, string>>>()));

Diseño

  • Depende de Cayaqui.Abstractions (para IHandler<,>) y Cayaqui.BuildingBlocks (para Result<T>).
  • El decorator sólo observa el Result<TResult> que retorna el inner handler; no construye errores propios.
  • En fallo (result.IsFailure) emite LogWarning con código y mensaje del DomainError; en éxito emite LogInformation; en excepción no capturada emite LogError y re-lanza.

Requisitos

  • .NET 10.0 o superior
  • Cayaqui.Abstractions >= 0.2.0
  • Cayaqui.BuildingBlocks >= 0.4.0

Distribución propietaria — requiere contrato comercial con Cayaqui. Ver LICENSE.txt.

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 (1)

Showing the top 1 NuGet packages that depend on Cayaqui.Cqrs:

Package Downloads
Cayaqui.BuildingBlocks.EntityFrameworkCore

EF Core integration for Cayaqui.BuildingBlocks: transactional Outbox (EfOutboxStore with Postgres FOR UPDATE SKIP LOCKED + redispatch/purge hosted services + multi-store health check), audit + domain-event-dispatch SaveChanges interceptors, and Blazor Server-safe scoped CQRS handlers (ScopedQueryHandler/ScopedCommandHandler over IDbContextFactory returning Result<T>). Proprietary — requires a commercial agreement with Cayaqui.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.4.21 109 6/23/2026
0.4.20 121 6/23/2026
0.4.15 112 6/22/2026
0.4.14 111 6/22/2026
0.4.13 116 6/22/2026
0.4.10 122 6/20/2026
0.4.5 108 6/20/2026
0.4.3 107 6/20/2026
0.4.2 109 6/20/2026
0.4.1 109 6/20/2026
0.3.9 113 6/19/2026
0.3.8 112 6/18/2026
0.3.7 111 6/18/2026
0.3.6 118 6/18/2026
0.3.5 116 6/18/2026
0.3.4 109 6/17/2026
0.1.2 111 6/16/2026
0.1.1 113 6/16/2026
0.1.0 111 6/15/2026

0.1.0 — Initial release. LoggingHandlerDecorator extracted from Cayaqui.Abstractions to restore that package to zero-dependency status.