Plugins little refactor
This commit is contained in:
13
DiunaBI.Infrastructure/Plugins/BaseDataProcessor.cs
Normal file
13
DiunaBI.Infrastructure/Plugins/BaseDataProcessor.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using DiunaBI.Domain.Entities;
|
||||
using DiunaBI.Infrastructure.Interfaces;
|
||||
|
||||
namespace DiunaBI.Infrastructure.Plugins;
|
||||
|
||||
public abstract class BaseDataProcessor : IDataProcessor
|
||||
{
|
||||
public abstract string ProcessorType { get; }
|
||||
|
||||
public virtual bool CanProcess(string processorType) => ProcessorType == processorType;
|
||||
|
||||
public abstract void Process(Layer processWorker);
|
||||
}
|
||||
Reference in New Issue
Block a user