C# Class DotNetWorkQueue.LinqCompile.DynamicCodeCompiler

A wrapper for Compiler that allows for caching of application domain instances
This class is not thread safe - the caller must ensure that only one thread acts on an single instance.
Inheritance: IPooledObject, IDisposable
ファイルを表示 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.

DynamicCodeCompiler ( ILogFactory log ) : System
ResetState ( ) : void

Resets the state of the instance before re-adding it to the pool

There is no guarantee that this method is called for instances not being added to the pool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

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

DynamicCodeCompiler() public method

public DynamicCodeCompiler ( ILogFactory log ) : System
log ILogFactory
return System

ResetState() public method

Resets the state of the instance before re-adding it to the pool
There is no guarantee that this method is called for instances not being added to the pool
public ResetState ( ) : void
return void