Class RuleProcessorFactory
Implements
Inherited Members
Namespace: LemonEdge .API.Core.FinancialServices .Processors
Assembly: LemonEdge.API.Core.FinancialServices.dll
Syntax
public class RuleProcessorFactory : IBaseDataSetProcessorFactory
Constructors
RuleProcessorFactory(IEntityDescriptorFactory, IFactoryInjector)
Declaration
public RuleProcessorFactory(IEntityDescriptorFactory entityDescriptorFactory, IFactoryInjector factoryInjector)
Parameters
Type | Name | Description |
---|---|---|
IEntity |
entityDescriptorFactory | |
IFactory |
factoryInjector |
Properties
ProcessorType
The type of processor this factory is responsible for creating
Declaration
public Type ProcessorType { get; }
Property Value
Type | Description |
---|---|
Type |
TypesInDataSet
A list of the types of entities that this factory can create processors for
Declaration
public EntityDescriptor[] TypesInDataSet { get; }
Property Value
Type | Description |
---|---|
Entity |
Methods
BelongsToDataSetProcessorType(IBaseEntity)
Indicates if the specified item actualy belongs to the processor this factory creates.
Some processors may be created for all instances of a type in Types
Declaration
public bool BelongsToDataSetProcessorType(IBaseEntity item)
Parameters
Type | Name | Description |
---|---|---|
IBase |
item | The item to see if it belongs in the type of processor this factory creates |
Returns
Type | Description |
---|---|
bool | True if the specified item actualy belongs to the processor this factory creates. |
Create(IEntityUpdater, IReadOnlyCache, UserInfo)
Creates a new instance of the processor from this factory
Declaration
public IBaseDataSetProcessor Create(IEntityUpdater updater, IReadOnlyCache cache, UserInfo user)
Parameters
Type | Name | Description |
---|---|---|
IEntity |
updater | A context for querying and updating all items in the LemonEdge platform |
IRead |
cache | A local current cache |
User |
user | The current logged in user |
Returns
Type | Description |
---|---|
IBase |
A new instance of the processor from this factory |