Cayaqui.MPS.Cqrs 0.1.0

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

Cayaqui.MPS.Cqrs

CQRS handler-pipeline decorators (logging) for the MPS IHandler<,> pipeline. Kept separate from Cayaqui.MPS.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.MPS.Cqrs

Uso típico

LoggingHandlerDecorator se registra automáticamente por AddMpsCqrs<TDbContext>() de Cayaqui.MPS.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.MPS.Abstractions (para IHandler<,>) y Cayaqui.MPS.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.MPS.Abstractions >= 0.2.0
  • Cayaqui.MPS.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.MPS.Cqrs:

Package Downloads
Cayaqui.MPS.BuildingBlocks.EntityFrameworkCore

EF Core integration for Cayaqui.MPS.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.1.0 127 6/4/2026

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