Interface IReactiveExpressionServices
Provides a set of services for expression tree manipulation in reactive processing implementations.
Namespace: Reaqtor
Assembly: Reaqtor.Shared.Model.dll
Syntax
public interface IReactiveExpressionServices
Methods
GetNamedExpression(Type, Uri)
Gets an expression representing a named resource.
Declaration
Expression GetNamedExpression(Type type, Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | Type of the resource. |
System.Uri | uri | Name of the resource. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | Expression representing the named resource. |
Normalize(Expression)
Normalizes the specified expression. This method is typically used to process expressions prior to further processing by a service.
Declaration
Expression Normalize(Expression expression)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | Expression to normalize. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | Normalized expression. |
RegisterObject(Object, Expression)
Registers an association of an object to its expression representation.
Declaration
void RegisterObject(object value, Expression expression)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Object to associate with an expression representation. |
System.Linq.Expressions.Expression | expression | Expression representation of the object. |
TryGetName(Expression, out Uri)
Tries to extract the name of a resource from its expression representation.
Declaration
bool TryGetName(Expression expression, out Uri uri)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | Expression to extract a name from. |
System.Uri | uri | Name of the resource, if found. |
Returns
Type | Description |
---|---|
System.Boolean | true if the expression represents a named resource; otherwise, false. |
TryGetObject(Object, out Expression)
Tries to find an association of the specified object to an expression representation.
Declaration
bool TryGetObject(object value, out Expression expression)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | Object to find an associated expression representation for. |
System.Linq.Expressions.Expression | expression | Expression representation of the object, if found. |
Returns
Type | Description |
---|---|
System.Boolean | true if an association was found; otherwise, false. |