mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 16:11:10 +00:00
Replaces reflection-based repository instantiation with unit of work property accessors
This commit is contained in:
1 parent
4fa9eb6e26
commit
fee14afb89
87 files changed
+541
-735
No files matched your search
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user