Klab.Toolkit.Messaging.Abstractions
3.1.2
dotnet add package Klab.Toolkit.Messaging.Abstractions --version 3.1.2
NuGet\Install-Package Klab.Toolkit.Messaging.Abstractions -Version 3.1.2
<PackageReference Include="Klab.Toolkit.Messaging.Abstractions" Version="3.1.2" />
<PackageVersion Include="Klab.Toolkit.Messaging.Abstractions" Version="3.1.2" />
<PackageReference Include="Klab.Toolkit.Messaging.Abstractions" />
paket add Klab.Toolkit.Messaging.Abstractions --version 3.1.2
#r "nuget: Klab.Toolkit.Messaging.Abstractions, 3.1.2"
#:package Klab.Toolkit.Messaging.Abstractions@3.1.2
#addin nuget:?package=Klab.Toolkit.Messaging.Abstractions&version=3.1.2
#tool nuget:?package=Klab.Toolkit.Messaging.Abstractions&version=3.1.2
Klab.Toolkit.Messaging.Abstractions
Overview
The Klab.Toolkit.Messaging.Abstractions package contains the interfaces and abstractions that define the messaging system in the Klab.Toolkit.Messaging package. This package is a core component of the Klab.Toolkit solution and provides a robust and flexible messaging system that allows different parts of the application to communicate with each other through events, requests, and streams. This package aims to promote decoupling and modularity by enabling mediator-based architecture.
Purpose
The primary purpose of the Klab.Toolkit.Messaging.Abstractions package is to facilitate various forms of asynchronous communication within the application. By using this package, different components can publish and subscribe to events, send requests, and stream responses without needing to know about each other, thus promoting loose coupling and enhancing maintainability.
Key Features
- Changeable Event Message Queue: The event message queue can be changed to any other implementation that implements the
IEventQueueinterface. - Event Subscription: To subscribe to an event, you can use the
IMediator.Subscribemethod, passing in the event type and a callback function or register a handler class that implements theIEventHandlerinterface. - Send Requests: The mediator also provides a
SendAsyncmethod that allows you to send a request to a handler and get a response back (like MediatR). - Default an In-Memory Event Queue: The default implementation of the event queue is an in-memory queue that stores events in memory. This implementation is suitable for most applications, but you can replace it with a custom implementation if needed.
Example Usage
See the test project Klab.Toolkit.Messaging.Tests.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. 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.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 is compatible. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Klab.Toolkit.Results (>= 3.1.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.5)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Klab.Toolkit.Messaging.Abstractions:
| Package | Downloads |
|---|---|
|
Klab.Toolkit.Messaging
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.