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
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Method Details

CompileAction() public méthode

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

CompileFunction() public méthode

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

Dispose() public méthode

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

Dispose() protected méthode

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.
Résultat void

DynamicCodeCompiler() public méthode

public DynamicCodeCompiler ( ILogFactory log ) : System
log ILogFactory
Résultat System

ResetState() public méthode

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
Résultat void