Klab.Toolkit.Event.Abstractions 2.10.0

dotnet add package Klab.Toolkit.Event.Abstractions --version 2.10.0
                    
NuGet\Install-Package Klab.Toolkit.Event.Abstractions -Version 2.10.0
                    
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="Klab.Toolkit.Event.Abstractions" Version="2.10.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Klab.Toolkit.Event.Abstractions" Version="2.10.0" />
                    
Directory.Packages.props
<PackageReference Include="Klab.Toolkit.Event.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 Klab.Toolkit.Event.Abstractions --version 2.10.0
                    
#r "nuget: Klab.Toolkit.Event.Abstractions, 2.10.0"
                    
#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 Klab.Toolkit.Event.Abstractions@2.10.0
                    
#: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=Klab.Toolkit.Event.Abstractions&version=2.10.0
                    
Install as a Cake Addin
#tool nuget:?package=Klab.Toolkit.Event.Abstractions&version=2.10.0
                    
Install as a Cake Tool

Klab.Toolkit.Event.Abstractions

Overview

The Klab.Toolkit.Event.Abstractions contains the interfaces and abstractions that define the event handling system in the Klab.Toolkit.Event package. This package is a core component of the Klab.Toolkit solution and provides a robust and flexible event handling system that allows different parts of the application to communicate with each other through events. This package aims to promote decoupling and modularity by enabling event-driven architecture.

Purpose

The primary purpose of the Klab.Toolkit.Event package is to facilitate event-driven communication within the application. By using this package, different components can publish and subscribe to events without needing to know about each other, thus promoting loose coupling and enhancing maintainability.

Key Features

  • Changebale Event Message Queue: The event message queue can be changed to any other implementation that implements the IEventQueue interface.
  • Event Subscription: To subscribe to an event, you can use the IEventBus.Subscribe method, passing in the event type and a callback function or register a handler class that implements the IEventHandler interface.
  • Send Requests: The EventBus also provides a Send method that allows you to send an 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.Event.Tests.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Klab.Toolkit.Event.Abstractions:

Package Downloads
Klab.Toolkit.Event

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.10.0 0 8/22/2025
2.9.0 125 8/3/2025
2.8.2 298 5/15/2025
2.8.1 205 4/24/2025
2.8.0 181 4/22/2025
2.7.3 221 4/13/2025
2.7.2 235 4/6/2025
2.7.1 190 4/3/2025
2.7.0 189 4/3/2025
2.6.0 573 3/24/2025
2.5.1 150 3/14/2025
2.5.0 130 2/24/2025
2.4.1 153 10/2/2024
2.4.0 136 10/2/2024
2.3.0 152 10/1/2024