Info
Version: | 2.0.17 |
Author(s): | Archetypical.Software |
Last Update: | Tuesday, January 26, 2021 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://archetypical.software/Product/Detail/Spigot |
NuGet Url: | https://www.nuget.org/packages/Archetypical.Software.Spigot |
Install
Install-Package Archetypical.Software.Spigot
dotnet add package Archetypical.Software.Spigot
paket add Archetypical.Software.Spigot
Archetypical.Software.Spigot Download (Unzip the "nupkg" after downloading)
Dependencies
- CloudNative.CloudEvents(>= 1.3.80)
- Microsoft.Extensions.Logging(>= 3.1.6)
- Microsoft.Extensions.Logging.Abstractions(>= 3.1.6)
- Polly(>= 7.2.1)
You can create a spigot to listen to any concrete serializable type and attach any number of event handlers to receive the message. Using the same spigot, you can broadcast any concrete serializable type to any listeners listening on the same stream.
A spigot is serializer and stream agnostic which means you can serialize with any mechanism you like and send the bytes over any mechanism you like.
Pre-Sending and Post-Receive hooks are defined so youc an manipulate the envelope to send additional information to be used by the receiver on the other side.