Search Results for

    Show / Hide Table of Contents

    Class LookupFilters

    Contains a set of helper functions for dynamicaly creating QueryableFilter for selecting valid entities, instruments or paths for a transaction depending on their context

    Inheritance
    System.Object
    LookupFilters
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.Entities.Processors.Transactional
    Assembly: API.dll
    Syntax
    public static class LookupFilters

    Methods

    GetEntityFilter(IEntityRetriever, IReadOnlyCache, IBaseEntity, IBaseEntity)

    Returns a queryable filter for the entities that can be selected against the specified transaction currentItem

    If the transaction is against an instrument, only the OwningEntityID is allowed, else the entities in the path of the transaction are allowed

    Declaration
    public static Task<QueryableFilter> GetEntityFilter(this IEntityRetriever retriever, IReadOnlyCache cache, IBaseEntity currentItem, IBaseEntity parentItem)
    Parameters
    Type Name Description
    IEntityRetriever retriever

    The current context this processor is running with

    IReadOnlyCache cache

    The current local cache

    IBaseEntity currentItem

    The transaction to return valid entities for

    IBaseEntity parentItem

    Any parent item associated with this transaction

    Returns
    Type Description
    System.Threading.Tasks.Task<QueryableFilter>

    A queryable filter for the entities that can be selected against the specified transaction currentItem

    GetInstrumentFilter(IEntityRetriever, IBaseEntity, IBaseEntity)

    Returns a queryable filter for the instruments that can be selected against the specified transaction currentItem

    If the transaction is against an entity, only allow instruments that have it as their OwningEntityID,

    else if against a path only allow instruments that have their OwningEntityID as an entity in the path
    Declaration
    public static Task<QueryableFilter> GetInstrumentFilter(this IEntityRetriever retriever, IBaseEntity currentItem, IBaseEntity parentItem)
    Parameters
    Type Name Description
    IEntityRetriever retriever

    The current context this processor is running with

    IBaseEntity currentItem

    The transaction to return valid instruments for

    IBaseEntity parentItem

    Any parent item associated with this transaction

    Returns
    Type Description
    System.Threading.Tasks.Task<QueryableFilter>

    A queryable filter for the instruments that can be selected against the specified transaction currentItem

    GetPathFilter(IEntityRetriever, IBaseEntity, IBaseEntity)

    Returns a queryable filter for the paths that can be selected against the specified transaction currentItem

    If the transaction is against an entity, only allow paths that contain rules against that entity,

    Declaration
    public static Task<QueryableFilter> GetPathFilter(this IEntityRetriever retriever, IBaseEntity currentItem, IBaseEntity parentItem)
    Parameters
    Type Name Description
    IEntityRetriever retriever

    The current context this processor is running with

    IBaseEntity currentItem

    The transaction to return valid paths for

    IBaseEntity parentItem

    Any parent item associated with this transaction

    Returns
    Type Description
    System.Threading.Tasks.Task<QueryableFilter>

    A queryable filter for the paths that can be selected against the specified transaction currentItem

    In This Article
    Back to top © LemonEdge Technology. All rights reserved.