Class MediaExpressionParser<TMedia, TMediaFormat>
expression parser for media queries
Inheritance
System.Object
MediaExpressionParser<TMedia, TMediaFormat>
Inherited Members
Namespace: ImageVault.Client.Query.Parser
Assembly: ImageVault.Client.dll
Syntax
public class MediaExpressionParser<TMedia, TMediaFormat> : CachedIvExpressionParser<TMedia, MediaQuery<TMediaFormat>, MediaFilter<TMediaFormat>>, IIvExpressionParser<MediaQuery<TMediaFormat>>, IIvExpressionParser where TMedia : Media where TMediaFormat : MediaFormatBase, new()
Type Parameters
Name | Description |
---|---|
TMedia | |
TMediaFormat |
Constructors
MediaExpressionParser(ImageVaultClientOptions, IObjectCache)
Initializes a new instance of the WebMediaExpressionParser class.
Declaration
public MediaExpressionParser(ImageVaultClientOptions options, IObjectCache objectCache)
Parameters
Type | Name | Description |
---|---|---|
ImageVaultClientOptions | options | |
IObjectCache | objectCache |
Methods
ConstructCacheKey(Type)
Declaration
protected override string ConstructCacheKey(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Returns
Type | Description |
---|---|
System.String |
Overrides
ImageVault.Client.Query.Parser.CachedIvExpressionParser<TMedia, ImageVault.Client.Query.Parser.MediaQuery<TMediaFormat>, ImageVault.Client.Query.Parser.MediaFilter<TMediaFormat>>.ConstructCacheKey(System.Type)
GetNotCachedResultFromServer(Type)
Declaration
protected override IQueryable GetNotCachedResultFromServer(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type |
Returns
Type | Description |
---|---|
System.Linq.IQueryable |
Overrides
ImageVault.Client.Query.Parser.CachedIvExpressionParser<TMedia, ImageVault.Client.Query.Parser.MediaQuery<TMediaFormat>, ImageVault.Client.Query.Parser.MediaFilter<TMediaFormat>>.GetNotCachedResultFromServer(System.Type)
Exceptions
Type | Condition |
---|---|
System.ApplicationException | If cannot instance type . |