Files
hcs/Hcs.WebApp/BackgroundServices/OperationExecutors/ExecutorFactory.cs

23 lines
722 B
C#

using Hcs.Broker;
using Hcs.WebApp.BackgroundServices.OperationExecutors.NsiCommon;
using Hcs.WebApp.Data.Hcs;
namespace Hcs.WebApp.BackgroundServices.OperationExecutors
{
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, scopeFactory, operation);
}
throw new NotImplementedException();
}
}
}