mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-31 03:45:20 -04:00
OPDS Performance Enhancements (#4332)
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user