diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-09-02 18:34:20 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-09-02 18:34:20 -0500 |
| commit | 51836f520fe400a33ad9daab932f13c2ed24467d (patch) | |
| tree | 6c88817af31ea86f78b16f02aae75da51f369208 /src/slskd/Events/EventBus.cs | |
| parent | 0a2c2db6c0a8f2a8325f128b314894e4db8cd369 (diff) | |
| download | slskd-51836f520fe400a33ad9daab932f13c2ed24467d.tar.gz | |
rename types
Diffstat (limited to 'src/slskd/Events/EventBus.cs')
| -rw-r--r-- | src/slskd/Events/EventBus.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Events/EventBus.cs b/src/slskd/Events/EventBus.cs index bc05e1b8..c3e418e7 100644 --- a/src/slskd/Events/EventBus.cs +++ b/src/slskd/Events/EventBus.cs @@ -71,12 +71,12 @@ public class EventBus /// <param name="data">The event data.</param> /// <typeparam name="T">The Type of the event.</typeparam> public virtual void Raise<T>(T data) - where T : Event + where T : BaseEvent { Log.Debug("Handling {Type}: {Data}", typeof(T), data); // save the event to the database before broadcasting to consumers - Events.Add(EventRecord.From<T>(data)); + Events.Add(Event.From<T>(data)); // broadcast the event in a fire-and-forget fashion // we don't need to wait for anything, just need to kick off the tasks |
