Class ReactiveQubscriptionFactoryBase<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6>
Base class for the implementation of parameterized subscription factories represented by an expression tree.
Inheritance
Implements
Namespace: Reaqtor
Assembly: Reaqtor.Expressions.Core.dll
Syntax
public abstract class ReactiveQubscriptionFactoryBase<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6> : Object, IReactiveQubscriptionFactory<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6>, IReactiveSubscriptionFactory<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6>, IReactiveExpressible, IExpressible
Type Parameters
Name | Description |
---|---|
TArg1 | Type of the first parameter passed to the subscription factory. |
TArg2 | Type of the second parameter passed to the subscription factory. |
TArg3 | Type of the third parameter passed to the subscription factory. |
TArg4 | Type of the fourth parameter passed to the subscription factory. |
TArg5 | Type of the fifth parameter passed to the subscription factory. |
TArg6 | Type of the sixth parameter passed to the subscription factory. |
Constructors
ReactiveQubscriptionFactoryBase(IReactiveQueryProvider)
Creates a new subscription factory represented by an expression tree, using the specified associated query provider.
Declaration
protected ReactiveQubscriptionFactoryBase(IReactiveQueryProvider provider)
Parameters
Type | Name | Description |
---|---|---|
IReactiveQueryProvider | provider | Query provider associated with the subscription factory. |
Properties
Expression
Gets the expression tree representing the subscription factory.
Declaration
public abstract Expression Expression { get; }
Property Value
Type | Description |
---|---|
System.Linq.Expressions.Expression |
Provider
Gets the query provider that is associated with the subscription factory.
Declaration
public IReactiveQueryProvider Provider { get; }
Property Value
Type | Description |
---|---|
IReactiveQueryProvider |
Methods
Create(Uri, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, Object)
Creates a new subscription with the specified subscription URI.
Declaration
public IReactiveQubscription Create(Uri subscriptionUri, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, object state = null)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | subscriptionUri | URI identifying the subscription. |
TArg1 | arg1 | First parameter to pass to the subscription factory. |
TArg2 | arg2 | Second parameter to pass to the subscription factory. |
TArg3 | arg3 | Third parameter to pass to the subscription factory. |
TArg4 | arg4 | Fourth parameter to pass to the subscription factory. |
TArg5 | arg5 | Fifth parameter to pass to the subscription factory. |
TArg6 | arg6 | Sixth parameter to pass to the subscription factory. |
System.Object | state | Additional metadata to associate with the artifact. Implementations can interpret this value, or ignore it. |
Returns
Type | Description |
---|---|
IReactiveQubscription | A subscription object, or an exception if the creation request was unsuccessful. |
CreateCore(Uri, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, Object)
Creates a new subscription with the specified subscription URI.
Declaration
protected abstract IReactiveQubscription CreateCore(Uri subscriptionUri, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | subscriptionUri | URI identifying the subscription. |
TArg1 | arg1 | First parameter to pass to the subscription factory. |
TArg2 | arg2 | Second parameter to pass to the subscription factory. |
TArg3 | arg3 | Third parameter to pass to the subscription factory. |
TArg4 | arg4 | Fourth parameter to pass to the subscription factory. |
TArg5 | arg5 | Fifth parameter to pass to the subscription factory. |
TArg6 | arg6 | Sixth parameter to pass to the subscription factory. |
System.Object | state | Additional metadata to associate with the artifact. Implementations can interpret this value, or ignore it. |
Returns
Type | Description |
---|---|
IReactiveQubscription | A subscription object, or an exception if the creation request was unsuccessful. |
Explicit Interface Implementations
IReactiveSubscriptionFactory<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6>.Create(Uri, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, Object)
Creates a new subscription with the specified subscription URI.
Declaration
IReactiveSubscription IReactiveSubscriptionFactory<TArg1, TArg2, TArg3, TArg4, TArg5, TArg6>.Create(Uri subscriptionUri, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | subscriptionUri | URI identifying the subscription. |
TArg1 | arg1 | First parameter to pass to the subscription factory. |
TArg2 | arg2 | Second parameter to pass to the subscription factory. |
TArg3 | arg3 | Third parameter to pass to the subscription factory. |
TArg4 | arg4 | Fourth parameter to pass to the subscription factory. |
TArg5 | arg5 | Fifth parameter to pass to the subscription factory. |
TArg6 | arg6 | Sixth parameter to pass to the subscription factory. |
System.Object | state | Additional metadata to associate with the artifact. Implementations can interpret this value, or ignore it. |
Returns
Type | Description |
---|---|
IReactiveSubscription | A subscription object, or an exception if the creation request was unsuccessful. |