Search Results for

    Show / Hide Table of Contents

    Class CachedIvExpressionParser<T, TQuery, TFilter>

    Defines a Cached IvExpressionParser that is able to cache the information based on the requested query

    Inheritance
    System.Object
    ExpressionVisitor
    IvExpressionParser<T, TQuery, TFilter>
    CachedIvExpressionParser<T, TQuery, TFilter>
    MediaExpressionParser<TMedia, TMediaFormat>
    MediaExpressionParser<TMedia, TMediaFormat>
    MediaItemExpressionParser<T>
    MediaItemExpressionParser<T>
    Implements
    IIvExpressionParser<TQuery>
    IIvExpressionParser
    Inherited Members
    IvExpressionParser<T, TQuery, TFilter>.AddMapping<TKey>(IvQueryMapping, Expression<Func<T, TKey>>, Func<Expression, IList<Expression>, Expression>)
    IvExpressionParser<T, TQuery, TFilter>.VisitMethodCall(MethodCallExpression)
    IvExpressionParser<T, TQuery, TFilter>.GetMappings(IvQueryMapping)
    IvExpressionParser<T, TQuery, TFilter>.VisitBinary(BinaryExpression)
    IvExpressionParser<T, TQuery, TFilter>.VisitUnary(UnaryExpression)
    IvExpressionParser<T, TQuery, TFilter>.VisitMemberAccess(MemberExpression)
    IvExpressionParser<T, TQuery, TFilter>.CheckIfBinaryExpressionIsValid(ExpressionType)
    IvExpressionParser<T, TQuery, TFilter>.IsSpecificMemberExpression<TKey>(Expression, Expression<Func<T, TKey>>)
    IvExpressionParser<T, TQuery, TFilter>.GetResultFromServer(Type)
    IvExpressionParser<T, TQuery, TFilter>.ElementType
    IvExpressionParser<T, TQuery, TFilter>.Query
    IvExpressionParser<T, TQuery, TFilter>.Client
    ExpressionVisitor.Visit(Expression)
    ExpressionVisitor.VisitBinary(BinaryExpression)
    ExpressionVisitor.VisitBinding(MemberBinding)
    ExpressionVisitor.VisitBindingList(ReadOnlyCollection<MemberBinding>)
    ExpressionVisitor.VisitConditional(ConditionalExpression)
    ExpressionVisitor.VisitConstant(ConstantExpression)
    ExpressionVisitor.VisitElementInitializer(ElementInit)
    ExpressionVisitor.VisitElementInitializerList(ReadOnlyCollection<ElementInit>)
    ExpressionVisitor.VisitExpressionList(ReadOnlyCollection<Expression>)
    ExpressionVisitor.VisitExpressionListWithCallback(ReadOnlyCollection<Expression>, Action<Int32, Int32>, Func<Int32, Int32, Boolean>)
    ExpressionVisitor.VisitInvocation(InvocationExpression)
    ExpressionVisitor.VisitLambda(LambdaExpression)
    ExpressionVisitor.VisitListInit(ListInitExpression)
    ExpressionVisitor.VisitMemberAccess(MemberExpression)
    ExpressionVisitor.VisitMemberAssignment(MemberAssignment)
    ExpressionVisitor.VisitMemberInit(MemberInitExpression)
    ExpressionVisitor.VisitMemberListBinding(MemberListBinding)
    ExpressionVisitor.VisitMemberMemberBinding(MemberMemberBinding)
    ExpressionVisitor.VisitMethodCall(MethodCallExpression)
    ExpressionVisitor.VisitNew(NewExpression)
    ExpressionVisitor.VisitNewArray(NewArrayExpression)
    ExpressionVisitor.VisitParameter(ParameterExpression)
    ExpressionVisitor.VisitTypeIs(TypeBinaryExpression)
    ExpressionVisitor.VisitUnary(UnaryExpression)
    ExpressionVisitor.Path
    Namespace: ImageVault.Client.Query.Parser
    Assembly: ImageVault.Client.dll
    Syntax
    public abstract class CachedIvExpressionParser<T, TQuery, TFilter> : IvExpressionParser<T, TQuery, TFilter>, IIvExpressionParser<TQuery>, IIvExpressionParser where TQuery : IIVQuery<TFilter>, new()
        where TFilter : IIVFilter
    Type Parameters
    Name Description
    T
    TQuery
    TFilter
    Remarks

    Implement the ConstructCacheKey(Type) method to return a cache key if the result should be cached and GetNotCachedResultFromServer(Type) to return the actual result

    Constructors

    CachedIvExpressionParser(ImageVaultClientOptions, ClientCacheTypes, IObjectCache)

    Initializes a new instance of the CachedIvExpressionParser<T, TQuery, TFilter> class.

    Declaration
    protected CachedIvExpressionParser(ImageVaultClientOptions options, ClientCacheTypes clientCacheType, IObjectCache objectCache)
    Parameters
    Type Name Description
    ImageVaultClientOptions options
    ClientCacheTypes clientCacheType
    IObjectCache objectCache

    Properties

    CachePolicy

    Gets the ClientCachePolicy of the CachedIVExpressionParser

    Declaration
    protected ClientCachePolicy CachePolicy { get; }
    Property Value
    Type Description
    ClientCachePolicy

    Methods

    ConstructCacheKey(Type)

    Construct a cache key for the call to GetResultFromServer

    Declaration
    protected abstract string ConstructCacheKey(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.String

    The key to be used to cache the result or null if the result shouldn't be cached

    GetNotCachedResultFromServer(Type)

    Gets the non cached result from the server

    Declaration
    protected abstract IQueryable GetNotCachedResultFromServer(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.Linq.IQueryable

    GetResultFromServer(Type)

    Checks the cache and uses the cached information if any exists.

    Declaration
    public override IQueryable GetResultFromServer(Type type)
    Parameters
    Type Name Description
    System.Type type
    Returns
    Type Description
    System.Linq.IQueryable
    Overrides
    ImageVault.Client.Query.Parser.IvExpressionParser<T, TQuery, TFilter>.GetResultFromServer(System.Type)

    Implements

    IIvExpressionParser<T>
    IIvExpressionParser

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022