mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fixing LibraryManager dependecy error
This commit is contained in:
parent
5c848ca01c
commit
07aa4d6752
@ -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,
|
@ -23,8 +23,4 @@
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.0-beta-20204-02" PrivateAssets="All" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Controllers\Implementations" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -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,
|
||||
|
@ -146,6 +146,7 @@ namespace Kyoo
|
||||
services.AddScoped<IStudioRepository, StudioRepository>();
|
||||
services.AddScoped<IGenreRepository, GenreRepository>();
|
||||
services.AddScoped<IProviderRepository, ProviderRepository>();
|
||||
services.AddScoped<DbContext, DatabaseContext>();
|
||||
|
||||
services.AddScoped<ILibraryManager, LibraryManager>();
|
||||
services.AddSingleton<ITranscoder, Transcoder>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user