C# Class DotNetWorkQueue.LinqCompile.Decorator.LinqCompileCacheDecorator

Cache decorator for linq compiles
Inheritance: ILinqCompiler
Show file Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
CompileAction ( LinqExpressionToRun linqExpression ) : object>.Action

Compiles the input linqExpression into a Linq expression tree

CompileFunction ( LinqExpressionToRun linqExpression ) : Func

Compiles the input linqExpression into a Linq expression tree

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

LinqCompileCacheDecorator ( ILinqCompiler handler, ObjectCache cache, ICachePolicy cachePolicy, IMetrics metrics, IConnectionInformation connectionInformation ) : System

Initializes a new instance of the LinqCompileCacheDecorator class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Private Methods

Method Description
GenerateKey ( LinqExpressionToRun linqExpression ) : string

Generates a key for the cache

Method Details

CompileAction() public method

Compiles the input linqExpression into a Linq expression tree
public CompileAction ( LinqExpressionToRun linqExpression ) : object>.Action
linqExpression DotNetWorkQueue.Messages.LinqExpressionToRun The linqExpression.
return object>.Action

CompileFunction() public method

Compiles the input linqExpression into a Linq expression tree
public CompileFunction ( LinqExpressionToRun linqExpression ) : Func
linqExpression DotNetWorkQueue.Messages.LinqExpressionToRun The linqExpression.
return Func

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

LinqCompileCacheDecorator() public method

Initializes a new instance of the LinqCompileCacheDecorator class.
public LinqCompileCacheDecorator ( ILinqCompiler handler, ObjectCache cache, ICachePolicy cachePolicy, IMetrics metrics, IConnectionInformation connectionInformation ) : System
handler ILinqCompiler The handler.
cache ObjectCache The cache.
cachePolicy ICachePolicy The cache policy.
metrics IMetrics The metrics.
connectionInformation IConnectionInformation The connection information.
return System