Scoped PGSql Contexts for Threads

This commit is contained in:
2024-12-16 21:24:00 +01:00
parent c4fc2f436b
commit 03e89913e3
7 changed files with 47 additions and 8 deletions

View File

@ -18,7 +18,7 @@ public class DownloadSingleChapterJob(string chapterId, string? parentJobId = nu
public string ChapterId { get; init; } = chapterId;
public virtual Chapter Chapter { get; init; }
public override IEnumerable<Job> Run()
protected override IEnumerable<Job> RunInternal()
{
MangaConnector connector = Chapter.ParentManga.MangaConnector;
DownloadChapterImages(Chapter);