OPDS Performance Enhancements (#4332)

Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
Joe Milazzo
2026-01-08 08:25:05 -07:00
committed by GitHub
parent 1480d20132
commit a7859e1a86
94 changed files with 4515 additions and 3124 deletions
@@ -1,8 +1,8 @@
using System.IO.Abstractions;
using API.Constants;
using API.Data;
using API.Data.AutoMapper;
using API.Helpers;
using API.Middleware;
using API.Services;
using API.Services.Caching;
using API.Services.Plus;
@@ -30,7 +30,7 @@ public static class ApplicationServiceExtensions
{
public static void AddApplicationServices(this IServiceCollection services, IConfiguration config, IWebHostEnvironment env)
{
services.AddAutoMapper(typeof(AutoMapperProfiles).Assembly);
services.AddAutoMapper(typeof(Program).Assembly);
services.AddScoped<UserContext>();
services.AddScoped<IUserContext>(sp => sp.GetRequiredService<UserContext>());
@@ -98,7 +98,7 @@ public static class ApplicationServiceExtensions
services.AddScoped<IWantToReadSyncService, WantToReadSyncService>();
services.AddScoped<IOidcService, OidcService>();
services.AddScoped<IEntityDisplayService, EntityDisplayService>();
services.AddScoped<IReadingHistoryService, ReadingHistoryService>();
services.AddScoped<IClientDeviceService, ClientDeviceService>();
@@ -107,6 +107,7 @@ public static class ApplicationServiceExtensions
services.AddSingleton<IReadingSessionService, ReadingSessionService>();
services.AddSingleton<IClientInfoAccessor, ClientInfoAccessor>();
services.AddSingleton<IEntityNamingService, EntityNamingService>();
services.AddSqLite();
services.AddSignalR(opt => opt.EnableDetailedErrors = true);