Apoyos.Servicebus
1.0.0-rc
dotnet add package Apoyos.Servicebus --version 1.0.0-rc
NuGet\Install-Package Apoyos.Servicebus -Version 1.0.0-rc
<PackageReference Include="Apoyos.Servicebus" Version="1.0.0-rc" />
<PackageVersion Include="Apoyos.Servicebus" Version="1.0.0-rc" />
<PackageReference Include="Apoyos.Servicebus" />
paket add Apoyos.Servicebus --version 1.0.0-rc
#r "nuget: Apoyos.Servicebus, 1.0.0-rc"
#:package Apoyos.Servicebus@1.0.0-rc
#addin nuget:?package=Apoyos.Servicebus&version=1.0.0-rc&prerelease
#tool nuget:?package=Apoyos.Servicebus&version=1.0.0-rc&prerelease
Apoyos
How to use the servicebus
Add the following packages to your csproj:
<PackageReference Include="Apoyos.Servicebus" Version="1.0.0-rc" />
<PackageReference Include="Apoyos.Servicebus.RabbitMQ" Version="1.0.0-rc" />
Add the servicebus to your container:
services.AddRabbitMQ(Configuration.GetSection("Servicebus"));
For all events you want to publish, add:
services.AddDomainEvent<MyDomainEvent>("my-domain-event");
And for all event handlers you want to listen for events, add:
services.AddDomainEventListener<MyDomainEvent, MyDomainEventHandler>("my-domain-event");
Your configuration should look something like this:
{
"Servicebus": {
"ServiceName": "MyApplicationName",
"RabbitMQ": {
"Hostname": "RabbitMQHostname",
"Username": "guest",
"Password": "guest"
}
}
}
Using a custom serializer
By default Apoyos uses the JsonDomainEventSerializer in the Apoyos.Servicebus
package.
Simply implement the IDomainEventSerializer
interface and register it in the container after AddRabbitMQ
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.Extensions.DependencyInjection (>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Options (>= 5.0.0)
-
net5.0
- Microsoft.Extensions.DependencyInjection (>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Options (>= 5.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Apoyos.Servicebus:
Package | Downloads |
---|---|
Apoyos.Servicebus.RabbitMQ
The RabbitMQ implementation of Apoyos.Servicebus. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.0.0-rc | 385 | 12/6/2020 |
1.0.0-beta | 436 | 3/9/2020 |
1.0.0-alpha | 406 | 2/29/2020 |