Interface IAsyncReactiveSubscriptionFactory
Interface for a subscription factory.
Namespace: Reaqtor
Assembly: Reaqtor.Local.Model.dll
Syntax
public interface IAsyncReactiveSubscriptionFactory
Methods
CreateAsync(Uri, Object, CancellationToken)
Creates a new subscription with the specified subscription URI.
Declaration
Task<IAsyncReactiveSubscription> CreateAsync(Uri subscriptionUri, object state = null, CancellationToken token = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Uri | subscriptionUri | URI identifying the subscription. |
| 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. |