Show / Hide Table of Contents

Class UriToReactiveProxyBinder

Binder to bind URI-based artifacts to an IReactiveProxy context.

Inheritance
System.Object
UriToReactiveBinderBase
UriToReactiveProxyBinder
Inherited Members
UriToReactiveBinderBase.Bind(Expression)
UriToReactiveBinderBase.SetThisParameter(Expression)
UriToReactiveBinderBase.ThisParameter
Namespace: Reaqtor
Assembly: Reaqtor.Client.Core.dll
Syntax
public class UriToReactiveProxyBinder : UriToReactiveBinderBase

Constructors

UriToReactiveProxyBinder()

Declaration
public UriToReactiveProxyBinder()

Properties

ThisType

Gets the type of this 'this' reference, i.e. IReactiveProxy.

Declaration
protected override Type ThisType { get; }
Property Value
Type Description
System.Type
Overrides
UriToReactiveBinderBase.ThisType

Methods

BindObservable(Expression, Uri, Object, CancellationToken)

Binds an observable definition expression to the IReactiveProxy context.

Declaration
public Expression BindObservable(Expression expr, Uri observableUri, object state, CancellationToken token)
Parameters
Type Name Description
System.Linq.Expressions.Expression expr

Expression representing the observable definition expression.

System.Uri observableUri

URI passed to the DefineObservableAsync call.

System.Object state

State passed to the DefineObservableAsync call

System.Threading.CancellationToken token

Cancellation token passed to DefineObservableAsync call.

Returns
Type Description
System.Linq.Expressions.Expression

Rewritten expression with the observable definition call bound to the IReactiveProxy context.

BindObserver(Expression, Uri, Object, CancellationToken)

Binds an observer definition expression to the IReactiveProxy context.

Declaration
public Expression BindObserver(Expression expr, Uri observerUri, object state, CancellationToken token)
Parameters
Type Name Description
System.Linq.Expressions.Expression expr

Expression representing the observer definition expression.

System.Uri observerUri

URI passed to the DefineObserverAsync call.

System.Object state

State passed to the DefineObserverAsync call

System.Threading.CancellationToken token

Cancellation token passed to DefineObserverAsync call.

Returns
Type Description
System.Linq.Expressions.Expression

Rewritten expression with the observer definition call bound to the IReactiveProxy context.

BindStream(Expression, Uri, Object, CancellationToken)

Binds a stream creation expression to the IReactiveProxy context.

Declaration
public Expression BindStream(Expression expr, Uri streamUri, object state, CancellationToken token)
Parameters
Type Name Description
System.Linq.Expressions.Expression expr

Expression representing the subscription creation expression.

System.Uri streamUri

URI passed to the CreateAsync call.

System.Object state

State passed to the CreateAsync call

System.Threading.CancellationToken token

Cancellation token passed to CreateAsync call.

Returns
Type Description
System.Linq.Expressions.Expression

Rewritten expression with the subscription creation call bound to the IReactiveProxy context.

BindSubscription(Expression, Uri, Object, CancellationToken)

Binds a subscription creation expression to the IReactiveProxy context.

Declaration
public Expression BindSubscription(Expression expr, Uri subscriptionUri, object state, CancellationToken token)
Parameters
Type Name Description
System.Linq.Expressions.Expression expr

Expression representing the subscription creation expression.

System.Uri subscriptionUri

URI passed to the SubscribeAsync call.

System.Object state

State passed to the SubscribeAsync call

System.Threading.CancellationToken token

Cancellation token passed to SubscribeAsync call.

Returns
Type Description
System.Linq.Expressions.Expression

Rewritten expression with the subscription creation call bound to the IReactiveProxy context.

Lookup(String, Type, Type)

Looks up the artifact with the specified identifier and type, returning its bound expression representation.

Declaration
protected override Expression Lookup(string id, Type type, Type funcType)
Parameters
Type Name Description
System.String id

Identifier representing the artifact.

System.Type type

Type of the artifact.

System.Type funcType

Function type for parameterized artifacts.

Returns
Type Description
System.Linq.Expressions.Expression

Bound expression representation of the artifact.

Overrides
UriToReactiveBinderBase.Lookup(String, Type, Type)

LookupOther(String, Type, Type)

Looks up an unknown artifact with the specified identifier and type, returning its bound expression representation.

Declaration
protected virtual Expression LookupOther(string id, Type type, Type funcType)
Parameters
Type Name Description
System.String id

Identifier representing the artifact.

System.Type type

Type of the artifact.

System.Type funcType

Function type for parameterized artifacts.

Returns
Type Description
System.Linq.Expressions.Expression

Bound expression representation of the artifact.

In This Article
Back to top Generated by DocFX