Class AsyncToSyncRewriter
Provides expression rewriting capabilities to move from an asynchronous representation to a synchronous representation of a reactive expression.
Inheritance
System.Object
AsyncToSyncRewriter
Namespace: Reaqtor
Assembly: Reaqtor.Shared.Core.dll
Syntax
public class AsyncToSyncRewriter : Object
Constructors
AsyncToSyncRewriter(IDictionary<Type, Type>)
Creates a new async to sync rewriter using the specified map for reactive interfaces.
Declaration
public AsyncToSyncRewriter(IDictionary<Type, Type> reactiveInterfacesTypeMap)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IDictionary<System.Type, System.Type> | reactiveInterfacesTypeMap | Dictionary mapping asynchronous reactive interface types to their synchronous counterparts. |
Methods
Rewrite(Expression)
Rewrites an asynchronous reactive expression to its synchronous equivalent.
Declaration
public Expression Rewrite(Expression expression)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expression | Asynchronous reactive expression to rewrite. |
Returns
Type | Description |
---|---|
System.Linq.Expressions.Expression | Synchronous equivalent of the specified expression. |