Search Results for

    Show / Hide Table of Contents

    Interface IBaseDataSetProcessorFactory

    An interface for creating a particular ProcessorType inheriting from IBaseDataSetProcessor

    Implement this for any given custom created IBaseDataSetProcessor and the system can integrate with it using DataSetProcessorFactory

    Namespace: LemonEdge.API.Core.Processors
    Assembly: LemonEdge.API.dll
    Syntax
    public interface IBaseDataSetProcessorFactory

    Properties

    ProcessorType

    The type of processor this factory is responsible for creating

    Declaration
    Type ProcessorType { get; }
    Property Value
    Type Description
    Type

    TypesInDataSet

    A list of the types of entities that this factory can create processors for

    Declaration
    EntityDescriptor[] TypesInDataSet { get; }
    Property Value
    Type Description
    EntityDescriptor[]

    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 TypesInDataSet, and others may only work on certain ones (such as items implementing ICanBeTransferred would be left alone if being transferred by another processor)

    Declaration
    bool BelongsToDataSetProcessorType(IBaseEntity item)
    Parameters
    Type Name Description
    IBaseEntity 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
    IBaseDataSetProcessor Create(IEntityUpdater updater, IReadOnlyCache cache, UserInfo user)
    Parameters
    Type Name Description
    IEntityUpdater updater

    A context for querying and updating all items in the LemonEdge platform

    IReadOnlyCache cache

    A local current cache

    UserInfo user

    The current logged in user

    Returns
    Type Description
    IBaseDataSetProcessor

    A new instance of the processor from this factory

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)

    See Also

    DataSetProcessorFactory
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.