Codigon.EventBus.Abstractions 0.3.6

dotnet add package Codigon.EventBus.Abstractions --version 0.3.6
NuGet\Install-Package Codigon.EventBus.Abstractions -Version 0.3.6
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="Codigon.EventBus.Abstractions" Version="0.3.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Codigon.EventBus.Abstractions --version 0.3.6
#r "nuget: Codigon.EventBus.Abstractions, 0.3.6"
#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 Codigon.EventBus.Abstractions as a Cake Addin
#addin nuget:?package=Codigon.EventBus.Abstractions&version=0.3.6

// Install Codigon.EventBus.Abstractions as a Cake Tool
#tool nuget:?package=Codigon.EventBus.Abstractions&version=0.3.6

Codigon.EventBus.Abstractions

Interfaces und Klassen zur Verwendung von Codigon.EventBus.

Ableitungen/Implementierungen für Sagas und Handlers

Saga<TState>

Erstellen einer Saga-Klasse mit State.

Sagas besitzen darüber hinaus noch weitere Methoden:

  • RetryLater, um die Message zurückzureihen
  • Publish, um eine andere Message zu senden
  • Compensate, um den Versender zu informieren, dass der Vorgang abgebrochen wurde
  • Log, um einen Log-Eintrag zur Saga zu erstellen
  • MarkAsCompleted, um die Saga zu beenden

IStartedByMessage<TMessage>

Sagas werden über TMessages erzeugt. Beim Erhalt der Message wird HandleAsync aufgerufen.

IHandleMessage<TMessage>

Bestehende Sagas (oder keine Saga-Klassen) rufen beim Erhalt dieser Message die HandleAync-Methode auf.

ICompensateMessage<TMessage>

Tritt bei der Bearbeitung einer Message ein Fehler auf, so wird eine Compensate-Message an den Sender der Nachricht geschickt. Ist dort ICompensateMessage<TMessage> implementiert, wird die Methode CompensateAysnc aufgerufen.

Versand von Messages

Der Versand von neuen Message wird mit IMessageService.PublishAsync gemacht. Beispiel:

messageService.PublishAsync(
  new OrderPlaced()
  correlationId: "69C82445-C845-4F94-BE10-BC20F1872DBA", //Correlation-ID => eindeutig in Kombation mit Saga-Type (wird intern für die Suche nach aktiven States verwendet).
);
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Codigon.EventBus.Abstractions:

Package Downloads
Codigon.EventBus.Core

Codigon.EventBus.Core

Codigon.EventBus.Transport.RabbitMQ

Codigon.EventBus.Transport.RabbitMQ

Codigon.EventBus.Persistence.MsSql

Codigon.EventBus.Persistence.MsSql

Codigon.EventBus.Transport.AzureServiceBus

Codigon.EventBus.Transport.AzureServiceBus

Codigon.EventBus.Persistence.AzureTableStorage

Codigon.EventBus.Persistence.AzureTableStorage

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.6 700 11/4/2022
0.3.5 642 11/4/2022
0.3.4 643 11/4/2022
0.3.3 641 11/4/2022
0.3.2 649 11/4/2022