Fulfill export executor

This commit is contained in:
2025-10-27 10:17:08 +09:00
parent 7c35c9a7df
commit 9e9845d446
6 changed files with 23 additions and 7 deletions

View File

@ -4,14 +4,16 @@ using Hcs.WebApp.Data.Hcs;
namespace Hcs.WebApp.BackgroundServices.OperationExecutors
{
public class ExecutorFactory
public class ExecutorFactory(IServiceScopeFactory scopeFactory)
{
protected readonly IServiceScopeFactory scopeFactory = scopeFactory;
public IExecutor CreateExecutor(IClient client, Operation operation)
{
switch (operation.Type)
{
case Operation.OperationType.NsiCommon_ExportNsiItem_15_7_0_1:
return new ExportNsiItemExecutor_15_7_0_1(client, operation);
return new ExportNsiItemExecutor_15_7_0_1(client, scopeFactory, operation);
}
throw new NotImplementedException();