SkillAgentSearch skills...

Eventaggregator

No description available

Install / Use

/learn @stevsharp/Eventaggregator
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

EventAggregator

A simple and thread-safe event aggregator for .NET 8 applications, allowing for decoupled communication between different parts of your application through event subscription and publishing.

Features

  • Thread-safe event subscription and publishing.
  • Easy subscription and unsubscription using the SubScription class.
  • Supports any event type through generics.

Getting Started

Prerequisites

  • .NET 8 SDK

Installation

Clone the repository:

bash git clone https://github.com/your-username/EventAggregator.git

Usage

Here's an example of how to use the EventAggregator:

EventAggregator eventAggregator = new();

using SubScription sub = eventAggregator.Subscribe<Message>((x) => Info(x));

eventAggregator.Publish(new Message("Test"));

static void Info(Message message) { Console.WriteLine($"Event Received : {message.Data}"); } }

Connect with Me

LinkedIn

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated2mo ago
Forks0

Languages

CSS

Security Score

80/100

Audited on Jan 21, 2026

No findings