Implement parsing

This commit is contained in:
2025-11-22 11:10:03 +09:00
parent 8095bf8ebc
commit dfb60cb9f0
8 changed files with 102 additions and 13 deletions

View File

@ -1,12 +1,17 @@
using Hcs.Broker;
using Hcs.WebApp.Data.Hcs;
using Hcs.WebApp.Data.Hcs;
using Hcs.WebApp.Services;
namespace Hcs.WebApp.BackgroundServices.DataParsers
{
public abstract class DataParserBase(IServiceScope scope, Operation operation) : IDataParser
public abstract class DataParserBase(IServiceScope scope, Operation operation, IWebHostEnvironment webHostEnvironment) : IDataParser
{
protected readonly IServiceScope scope = scope;
protected readonly Operation operation = operation;
protected readonly IWebHostEnvironment webHostEnvironment = webHostEnvironment;
private FileToParseService? fileToParseService;
protected FileToParseService FileToParseService => fileToParseService ??= scope.ServiceProvider.GetRequiredService<FileToParseService>();
public abstract Task ParseAsync();
}