mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
Move to Microsoft.Extensions.DependencyInjection
This PR replaces SimpleInjector with Microsoft.Extensions.DependencyInjection.
This commit is contained in:
@@ -21,6 +21,7 @@ using MediaBrowser.Controller.Drawing;
|
||||
using MediaBrowser.Model.Globalization;
|
||||
using MediaBrowser.Model.IO;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Serilog;
|
||||
using Serilog.AspNetCore;
|
||||
@@ -114,7 +115,7 @@ namespace Jellyfin.Server
|
||||
new NullImageEncoder(),
|
||||
new NetworkManager(_loggerFactory, environmentInfo)))
|
||||
{
|
||||
await appHost.Init();
|
||||
await appHost.Init(new ServiceCollection());
|
||||
|
||||
appHost.ImageProcessor.ImageEncoder = GetImageEncoder(fileSystem, appPaths, appHost.LocalizationManager);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user