Replaces reflection-based repository instantiation with unit of work property accessors

This commit is contained in:
BinaryAlley committed 2026-08-14 09:03:30 -07:00
1 parent 4fa9eb6e26
commit fee14afb89
87 files changed
+541 -735

No files matched your search

@@ -31,7 +31,7 @@ internal sealed class FileSystemDiscoveryJob : MediaLibraryScanJob, IFileSystemD
{
await using AsyncServiceScope asyncServiceScope = _serviceScopeFactory.CreateAsyncScope();
IUnitOfWork unitOfWork = asyncServiceScope.ServiceProvider.GetService<IUnitOfWork>();
ILibraryRepository libraryRepository = unitOfWork.GetRepository<ILibraryRepository>();
ILibraryRepository libraryRepository = unitOfWork.LibraryRepository;
// execution logic
}
}