From 51836f520fe400a33ad9daab932f13c2ed24467d Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 2 Sep 2024 18:34:20 -0500 Subject: rename types --- src/slskd/Events/EventService.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/slskd/Events/EventService.cs') diff --git a/src/slskd/Events/EventService.cs b/src/slskd/Events/EventService.cs index c10f0d32..759dc8cf 100644 --- a/src/slskd/Events/EventService.cs +++ b/src/slskd/Events/EventService.cs @@ -40,21 +40,21 @@ public class EventService private ILogger Log { get; } = Serilog.Log.ForContext(); /// - /// Adds the specified event . + /// Adds the specified event . /// - /// The record to add. + /// The record to add. /// Thrown when the specified record is null. - public virtual void Add(EventRecord record) + public virtual void Add(Event @event) { - if (record is null) + if (@event is null) { - throw new ArgumentNullException(nameof(record)); + throw new ArgumentNullException(nameof(@event)); } try { using var context = ContextFactory.CreateDbContext(); - context.Add(record); + context.Add(@event); context.SaveChanges(); } catch (Exception ex) -- cgit v1.2.3