The Free Software Media System - Server Backend & API
Register event services
Patrick Barronee5d4b114675
diff --git a/Jellyfin.Server/CoreAppHost.cs b/Jellyfin.Server/CoreAppHost.csindex 29a59e1c8a..04530769a4 100644--- a/Jellyfin.Server/CoreAppHost.cs+++ b/Jellyfin.Server/CoreAppHost.cs@@ -1,20 +1,20 @@using System;using System.Collections.Generic;-using System.IO;using System.Reflection;using Emby.Drawing;using Emby.Server.Implementations;using Jellyfin.Drawing.Skia;using Jellyfin.Server.Implementations;using Jellyfin.Server.Implementations.Activity;+using Jellyfin.Server.Implementations.Events;using Jellyfin.Server.Implementations.Users;using MediaBrowser.Common.Net;using MediaBrowser.Controller;using MediaBrowser.Controller.Drawing;+using MediaBrowser.Controller.Events;using MediaBrowser.Controller.Library;using MediaBrowser.Model.Activity;using MediaBrowser.Model.IO;-using Microsoft.EntityFrameworkCore;using Microsoft.Extensions.DependencyInjection;using Microsoft.Extensions.Logging;@@ -71,6 +71,8 @@ namespace Jellyfin.Server// .UseSqlite($"Filename={Path.Combine(ApplicationPaths.DataPath, "jellyfin.db")}"),// ServiceLifetime.Transient);+ serviceCollection.AddEventServices();+ serviceCollection.AddSingleton<IEventManager, EventManager>();serviceCollection.AddSingleton<JellyfinDbProvider>();serviceCollection.AddSingleton<IActivityManager, ActivityManager>();