Add operation executor
This commit is contained in:
20
Hcs.WebApp/BackgroundServices/Executors/ExecutorFactory.cs
Normal file
20
Hcs.WebApp/BackgroundServices/Executors/ExecutorFactory.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using Hcs.Broker;
|
||||
using Hcs.WebApp.BackgroundServices.Executors._15_7_0_1.NsiCommon;
|
||||
using Hcs.WebApp.Data.Hcs;
|
||||
|
||||
namespace Hcs.WebApp.BackgroundServices.Executors
|
||||
{
|
||||
public class ExecutorFactory
|
||||
{
|
||||
public IExecutor CreateExecutor(IClient client, Operation operation)
|
||||
{
|
||||
switch (operation.Type)
|
||||
{
|
||||
case Operation.OperationType.NsiCommon_15_7_0_1_ExportAllRegistryElements:
|
||||
return new ExportAllRegistryElementsExecutor(client, operation);
|
||||
}
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user