Show / Hide Table of Contents

Class AsyncReactiveSubscriptionFactoryBase<TArg1, TArg2, TArg3>

Base class for subscription factories.

Inheritance
System.Object
AsyncReactiveSubscriptionFactoryBase<TArg1, TArg2, TArg3>
Implements
IAsyncReactiveSubscriptionFactory<TArg1, TArg2, TArg3>
Namespace: Reaqtor
Assembly: Reaqtor.Local.Core.dll
Syntax
public abstract class AsyncReactiveSubscriptionFactoryBase<TArg1, TArg2, TArg3> : Object, IAsyncReactiveSubscriptionFactory<TArg1, TArg2, TArg3>
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.

Constructors

AsyncReactiveSubscriptionFactoryBase()

Declaration
protected AsyncReactiveSubscriptionFactoryBase()

Methods

CreateAsync(Uri, TArg1, TArg2, TArg3, Object, CancellationToken)

Creates a new subscription with the specified subscription URI.

Declaration
public Task<IAsyncReactiveSubscription> CreateAsync(Uri subscriptionUri, TArg1 arg1, TArg2 arg2, TArg3 arg3, 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.

TArg3 arg3

Third 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.

System.Threading.CancellationToken token

Token to observe for cancellation of the request.

Returns
Type Description
System.Threading.Tasks.Task<IAsyncReactiveSubscription>

Task returning a subscription object, or an exception if the creation request was unsuccessful.

CreateAsyncCore(Uri, TArg1, TArg2, TArg3, Object, CancellationToken)

Creates a new subscription with the specified subscription URI.

Declaration
protected abstract Task<IAsyncReactiveSubscription> CreateAsyncCore(Uri subscriptionUri, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state, CancellationToken token)
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.

System.Object state

Additional metadata to associate with the artifact. 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<IAsyncReactiveSubscription>

Task returning a subscription object, or an exception if the creation request was unsuccessful.

Implements

IAsyncReactiveSubscriptionFactory<TArg1, TArg2, TArg3>
In This Article
Back to top Generated by DocFX