Interface IAsyncReactiveQubscriptionFactory<TArg1, TArg2>
Interface for a parameterized subscription factory.
Inherited Members
Namespace: Reaqtor
Assembly: Reaqtor.Expressions.Model.dll
Syntax
public interface IAsyncReactiveQubscriptionFactory<TArg1, TArg2> : IAsyncReactiveSubscriptionFactory<TArg1, TArg2>, IAsyncReactiveExpressible, 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. |
Methods
CreateAsync(Uri, TArg1, TArg2, Object, CancellationToken)
Creates a new subscription with the specified subscription URI.
Declaration
Task<IAsyncReactiveQubscription> CreateAsync(Uri subscriptionUri, TArg1 arg1, TArg2 arg2, object state = null, CancellationToken token = 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. |
System.Object | state | Additional state to pass to the operation. Implementations can interpret this value, or ignore it. |
System.Threading.CancellationToken | token | Token to observe for cancellation of the request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<IAsyncReactiveQubscription> | Task returning a subscription object, or an exception if the creation request was unsuccessful. |