From 07aa4d67522685a3d1d6e85f50cc24fc752494d7 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 16 Feb 2021 23:05:31 +0100 Subject: [PATCH] Fixing LibraryManager dependecy error --- .../Controllers/Implementations}/ALibraryManager.cs | 4 ++-- Kyoo.Common/Kyoo.Common.csproj | 4 ---- Kyoo.CommonAPI/LibraryManager.cs | 4 ++-- Kyoo/Startup.cs | 1 + 4 files changed, 5 insertions(+), 8 deletions(-) rename {Kyoo.CommonAPI => Kyoo.Common/Controllers/Implementations}/ALibraryManager.cs (99%) diff --git a/Kyoo.CommonAPI/ALibraryManager.cs b/Kyoo.Common/Controllers/Implementations/ALibraryManager.cs similarity index 99% rename from Kyoo.CommonAPI/ALibraryManager.cs rename to Kyoo.Common/Controllers/Implementations/ALibraryManager.cs index d809d334..8b276616 100644 --- a/Kyoo.CommonAPI/ALibraryManager.cs +++ b/Kyoo.Common/Controllers/Implementations/ALibraryManager.cs @@ -6,7 +6,7 @@ using Kyoo.Models; namespace Kyoo.Controllers { - public class LibraryManager : ILibraryManager + public class ALibraryManager : ILibraryManager { public ILibraryRepository LibraryRepository { get; } public ILibraryItemRepository LibraryItemRepository { get; } @@ -20,7 +20,7 @@ namespace Kyoo.Controllers public IPeopleRepository PeopleRepository { get; } public IProviderRepository ProviderRepository { get; } - protected LibraryManager(ILibraryRepository libraryRepository, + protected ALibraryManager(ILibraryRepository libraryRepository, ILibraryItemRepository libraryItemRepository, ICollectionRepository collectionRepository, IShowRepository showRepository, diff --git a/Kyoo.Common/Kyoo.Common.csproj b/Kyoo.Common/Kyoo.Common.csproj index 44f198b9..ff7ef1e2 100644 --- a/Kyoo.Common/Kyoo.Common.csproj +++ b/Kyoo.Common/Kyoo.Common.csproj @@ -23,8 +23,4 @@ - - - - diff --git a/Kyoo.CommonAPI/LibraryManager.cs b/Kyoo.CommonAPI/LibraryManager.cs index 5df48c89..ecc38f5d 100644 --- a/Kyoo.CommonAPI/LibraryManager.cs +++ b/Kyoo.CommonAPI/LibraryManager.cs @@ -8,11 +8,11 @@ using Microsoft.EntityFrameworkCore.ChangeTracking; namespace Kyoo.Controllers { - public class TLibraryManager : LibraryManager + public class LibraryManager : ALibraryManager { private readonly DbContext _database; - public TLibraryManager(ILibraryRepository libraryRepository, + public LibraryManager(ILibraryRepository libraryRepository, ILibraryItemRepository libraryItemRepository, ICollectionRepository collectionRepository, IShowRepository showRepository, diff --git a/Kyoo/Startup.cs b/Kyoo/Startup.cs index ea3aabcd..b04a7f18 100644 --- a/Kyoo/Startup.cs +++ b/Kyoo/Startup.cs @@ -146,6 +146,7 @@ namespace Kyoo services.AddScoped(); services.AddScoped(); services.AddScoped(); + services.AddScoped(); services.AddScoped(); services.AddSingleton();