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.
<PackageVersion Include="Codigon.EventBus.Abstractions" Version="0.3.6" />
                    
Directory.Packages.props
<PackageReference Include="Codigon.EventBus.Abstractions" />
                    
Project file
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 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.
#:package Codigon.EventBus.Abstractions@0.3.6
                    
#: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=Codigon.EventBus.Abstractions&version=0.3.6
                    
Install as a Cake Addin
#tool nuget:?package=Codigon.EventBus.Abstractions&version=0.3.6
                    
Install as a Cake Tool

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.  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. 
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 946 11/4/2022
0.3.5 851 11/4/2022
0.3.4 866 11/4/2022
0.3.3 862 11/4/2022
0.3.2 862 11/4/2022