Cosmos.EventDriven.CritterStack
0.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Cosmos.EventDriven.CritterStack --version 0.0.1
NuGet\Install-Package Cosmos.EventDriven.CritterStack -Version 0.0.1
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="Cosmos.EventDriven.CritterStack" Version="0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cosmos.EventDriven.CritterStack" Version="0.0.1" />
<PackageReference Include="Cosmos.EventDriven.CritterStack" />
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 Cosmos.EventDriven.CritterStack --version 0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cosmos.EventDriven.CritterStack, 0.0.1"
#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 Cosmos.EventDriven.CritterStack@0.0.1
#: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=Cosmos.EventDriven.CritterStack&version=0.0.1
#tool nuget:?package=Cosmos.EventDriven.CritterStack&version=0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Cosmos.EventDriven.CritterStack
Implementaciones de Wolverine para IPublicEventSender e IPrivateEventSender en Cosmos EDA con .NET 10.
Descripción
Este paquete provee las implementaciones concretas de los senders de eventos usando Wolverine como bus de mensajería. Separa explícitamente el envío de eventos públicos (inter-servicio) de los eventos privados (intra-servicio, dentro del mismo bounded context).
Características
- WolverinePublicEventSender: Implementación de
IPublicEventSenderque publicaIPublicEventa través del bus Wolverine hacia brokers externos (RabbitMQ, Azure Service Bus) - WolverinePrivateEventSender: Implementación de
IPrivateEventSenderque despachaIPrivateEventde forma local dentro del mismo proceso - AgregarWolverineEventSender: Método de extensión para registrar ambos senders en el contenedor de dependencias
Instalación
dotnet add package Cosmos.EventDriven.CritterStack
Uso
Registrar los senders en DI
builder.Services.AgregarWolverineEventSender();
Enviar un evento público
using Cosmos.EventDriven.Abstractions;
public record PedidoCreado(Guid PedidoId, string ClienteId) : IPublicEvent;
public class MiServicio(IPublicEventSender sender)
{
public async Task CrearPedido(...)
{
// ... lógica de negocio
await sender.SendAsync(new PedidoCreado(pedidoId, clienteId));
}
}
Enviar un evento privado
using Cosmos.EventDriven.Abstractions;
public record StockActualizado(Guid ProductoId, int Cantidad) : IPrivateEvent;
public class InventarioServicio(IPrivateEventSender sender)
{
public async Task ActualizarStock(...)
{
// ... lógica de negocio
await sender.SendAsync(new StockActualizado(productoId, cantidad));
}
}
Requisitos
- .NET 10.0 o superior
- Wolverine configurado en el host (
UseWolverine)
Licencia
Copyright © Cosmos. Todos los derechos reservados.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Cosmos.EventDriven.Abstractions (>= 0.0.5)
- WolverineFx (>= 5.18.0)
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 |
|---|---|---|
| 0.0.3 | 68 | 3/12/2026 |
| 0.0.2 | 35 | 3/12/2026 |
| 0.0.1 | 40 | 3/12/2026 |
| 0.0.1-RC.3 | 59 | 3/11/2026 |
| 0.0.1-RC.2 | 50 | 3/11/2026 |
| 0.0.1-RC.1 | 34 | 3/11/2026 |