From a6877ad94371dae6e59fb9e6fad29b364f6ab4e0 Mon Sep 17 00:00:00 2001 From: Joe Thompson Date: Sat, 25 Jul 2026 13:16:06 -0400 Subject: [PATCH] Added EventArgs constraint to the Publish function to match other generic functions. --- FluffyVoid.EventBus/FluffyVoid.EventBus.csproj | 10 +++++----- FluffyVoid.EventBus/GlobalEventBus.cs | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/FluffyVoid.EventBus/FluffyVoid.EventBus.csproj b/FluffyVoid.EventBus/FluffyVoid.EventBus.csproj index 8657899..4014682 100644 --- a/FluffyVoid.EventBus/FluffyVoid.EventBus.csproj +++ b/FluffyVoid.EventBus/FluffyVoid.EventBus.csproj @@ -13,10 +13,10 @@ Thread-safe C# event bus framework that allows for subscribing and publishing events in a decoupled method. FluffyVoid FluffyVoid.EventBus - 1.0.3 - 1.0.3 + 1.0.4 + 1.0.4 https://github.com/ashiryn/EventBus - 1.0.3 + 1.0.4 @@ -26,10 +26,10 @@ bin/Release/FluffyVoid.EventBus.xml - + true true - + diff --git a/FluffyVoid.EventBus/GlobalEventBus.cs b/FluffyVoid.EventBus/GlobalEventBus.cs index b891fc5..a3eb455 100644 --- a/FluffyVoid.EventBus/GlobalEventBus.cs +++ b/FluffyVoid.EventBus/GlobalEventBus.cs @@ -64,6 +64,7 @@ public static int Count() /// The event data sent with the event /// The type of event to publish public static void Publish(object sender, TEvent eventArgs) + where TEvent : EventArgs { Type eventId = typeof(TEvent); List callbacks;