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
<PackageReference Include="Cayaqui.MPS.Cqrs" Version="0.1.0" />
<PackageVersion Include="Cayaqui.MPS.Cqrs" Version="0.1.0" />
<PackageReference Include="Cayaqui.MPS.Cqrs" />
paket add Cayaqui.MPS.Cqrs --version 0.1.0
#r "nuget: Cayaqui.MPS.Cqrs, 0.1.0"
#:package Cayaqui.MPS.Cqrs@0.1.0
#addin nuget:?package=Cayaqui.MPS.Cqrs&version=0.1.0
#tool nuget:?package=Cayaqui.MPS.Cqrs&version=0.1.0
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(paraIHandler<,>) yCayaqui.MPS.BuildingBlocks(paraResult<T>). - El decorator sólo observa el
Result<TResult>que retorna el inner handler; no construye errores propios. - En fallo (
result.IsFailure) emiteLogWarningcon código y mensaje delDomainError; en éxito emiteLogInformation; en excepción no capturada emiteLogErrory re-lanza.
Requisitos
- .NET 10.0 o superior
Cayaqui.MPS.Abstractions>= 0.2.0Cayaqui.MPS.BuildingBlocks>= 0.4.0
Distribución propietaria — requiere contrato comercial con Cayaqui. Ver
LICENSE.txt.
| Product | Versions 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. |
-
net10.0
- Cayaqui.MPS.Abstractions (>= 0.2.0)
- Cayaqui.MPS.BuildingBlocks (>= 0.4.0)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.8)
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.