Nucleo.EventBus.Cap
8.0.5
dotnet add package Nucleo.EventBus.Cap --version 8.0.5
NuGet\Install-Package Nucleo.EventBus.Cap -Version 8.0.5
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="Nucleo.EventBus.Cap" Version="8.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Nucleo.EventBus.Cap --version 8.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Nucleo.EventBus.Cap, 8.0.5"
#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.
// Install Nucleo.EventBus.Cap as a Cake Addin #addin nuget:?package=Nucleo.EventBus.Cap&version=8.0.5 // Install Nucleo.EventBus.Cap as a Cake Tool #tool nuget:?package=Nucleo.EventBus.Cap&version=8.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Nucleo.EventBus.Cap
Overview
Nucleo.EventBus.Cap is a component of the Nucleo Framework that provides event bus capabilities using the CAP (C# Advanced Producer) library.
Features
- Event Publishing: Publish events to various message brokers.
- Event Subscription: Subscribe to events from different sources.
- Reliability: Ensures message delivery with retry mechanisms.
Installation
To install Nucleo.EventBus.Cap, use the following NuGet command:
dotnet add package Nucleo.EventBus.Cap
Usage
Publishing Events
public class MyEvent
{
public string Message { get; set; }
}
var eventBus = new EventBus();
eventBus.Publish(new MyEvent { Message = "Hello, World!" });
Subscribing to Events
public class MyEventHandler : IEventHandler<MyEvent>
{
public Task Handle(MyEvent @event)
{
Console.WriteLine(@event.Message);
return Task.CompletedTask;
}
}
var eventBus = new EventBus();
eventBus.Subscribe<MyEvent, MyEventHandler>();
Contributing
Contributions are welcome! Please read the contributing guidelines before submitting a pull request.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For more information, please contact the maintainers at support@nucleo-framework.com.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- DotNetCore.CAP (>= 8.2.0)
- DotNetCore.CAP.Dashboard (>= 8.2.0)
- DotNetCore.CAP.MongoDB (>= 8.2.0)
- DotNetCore.CAP.RabbitMQ (>= 8.2.0)
- Nucleo.EventBus (>= 8.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.