aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Events/EventService.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-09-02 18:34:20 -0500
committerJP Dillingham <jp@dillingham.me>2024-09-02 18:34:20 -0500
commit51836f520fe400a33ad9daab932f13c2ed24467d (patch)
tree6c88817af31ea86f78b16f02aae75da51f369208 /src/slskd/Events/EventService.cs
parent0a2c2db6c0a8f2a8325f128b314894e4db8cd369 (diff)
downloadslskd-51836f520fe400a33ad9daab932f13c2ed24467d.tar.gz
rename types
Diffstat (limited to 'src/slskd/Events/EventService.cs')
-rw-r--r--src/slskd/Events/EventService.cs12
1 files changed, 6 insertions, 6 deletions
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<EventService>();
/// <summary>
- /// Adds the specified event <paramref name="record"/>.
+ /// Adds the specified event <paramref name="event"/>.
/// </summary>
- /// <param name="record">The record to add.</param>
+ /// <param name="event">The record to add.</param>
/// <exception cref="ArgumentNullException">Thrown when the specified record is null.</exception>
- 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)