Class RecordingNotifySystem
Denotes an incrementalization system that records any requests
Implements
Inherited Members
Namespace: NMF.Expressions
Assembly: NMF.Expressions.Configuration.dll
Syntax
public class RecordingNotifySystem : INotifySystem
Constructors
| Edit this page View SourceRecordingNotifySystem(INotifySystem)
Creates a new recording incrementalization system
Declaration
public RecordingNotifySystem(INotifySystem inner)
Parameters
Type | Name | Description |
---|---|---|
INotifySystem | inner | The inner incrementalization system |
Properties
| Edit this page View SourceConfiguration
The recorded configuration
Declaration
public Configuration Configuration { get; }
Property Value
Type | Description |
---|---|
Configuration |
DefaultStrategy
The default strategy to apply
Declaration
public IncrementalizationStrategy DefaultStrategy { get; set; }
Property Value
Type | Description |
---|---|
IncrementalizationStrategy |
Inner
The inner incrementalization system
Declaration
public INotifySystem Inner { get; }
Property Value
Type | Description |
---|---|
INotifySystem |
Methods
| Edit this page View SourceCreateExpression(Expression, IEnumerable<ParameterExpression>, IDictionary<string, object>)
Creates an incremental expression for the given code expression
Declaration
public INotifyExpression CreateExpression(Expression expression, IEnumerable<ParameterExpression> parameters, IDictionary<string, object> parameterMappings)
Parameters
Type | Name | Description |
---|---|---|
Expression | expression | The expression from which to create an incremental expression |
IEnumerable<ParameterExpression> | parameters | The parameters of the expression |
IDictionary<string, object> | parameterMappings | A given mapping of parameters |
Returns
Type | Description |
---|---|
INotifyExpression | An incremental expression object |
CreateExpression<T>(Expression, IEnumerable<ParameterExpression>, IDictionary<string, object>)
Creates an incremental expression for the given code expression
Declaration
public INotifyExpression<T> CreateExpression<T>(Expression expression, IEnumerable<ParameterExpression> parameters, IDictionary<string, object> parameterMappings)
Parameters
Type | Name | Description |
---|---|---|
Expression | expression | The expression from which to create an incremental expression |
IEnumerable<ParameterExpression> | parameters | The parameters of the expression |
IDictionary<string, object> | parameterMappings | A given mapping of parameters |
Returns
Type | Description |
---|---|
INotifyExpression<T> | An incremental expression object |
Type Parameters
Name | Description |
---|---|
T | The type of the expression |
CreateReversableExpression<T>(Expression, IEnumerable<ParameterExpression>, IDictionary<string, object>)
Creates an incremental expression for the given code expression
Declaration
public INotifyReversableExpression<T> CreateReversableExpression<T>(Expression expression, IEnumerable<ParameterExpression> parameters, IDictionary<string, object> parameterMappings)
Parameters
Type | Name | Description |
---|---|---|
Expression | expression | The expression from which to create an incremental expression |
IEnumerable<ParameterExpression> | parameters | The parameters of the expression |
IDictionary<string, object> | parameterMappings | A given mapping of parameters |
Returns
Type | Description |
---|---|
INotifyReversableExpression<T> | An incremental expression object |
Type Parameters
Name | Description |
---|---|
T | The type of the expression |
GetApplicableStrategies(Expression, IEnumerable<ParameterExpression>)
Calculates the strategies applicable to incrementalize the given expression
Declaration
protected virtual IEnumerable<IncrementalizationStrategy> GetApplicableStrategies(Expression expression, IEnumerable<ParameterExpression> parameters)
Parameters
Type | Name | Description |
---|---|---|
Expression | expression | The expression that shall be incrementalized |
IEnumerable<ParameterExpression> | parameters | The parameters |
Returns
Type | Description |
---|---|
IEnumerable<IncrementalizationStrategy> | A colection of viable incrementalization strategies |
RecordExpressionUsage(Expression, IEnumerable<ParameterExpression>, bool)
Records the usage of the given expression
Declaration
protected virtual void RecordExpressionUsage(Expression expression, IEnumerable<ParameterExpression> parameters, bool reversible)
Parameters
Type | Name | Description |
---|---|---|
Expression | expression | The expression that was used |
IEnumerable<ParameterExpression> | parameters | The parameters |
bool | reversible | True, if the expression should be incrementalized reversable |