Show / Hide Table of Contents

Class AsyncReactiveQubjectFactoryBase<TInput, TOutput>

Base class for the implementation of subject factories represented by an expression tree.

Inheritance
System.Object
AsyncReactiveQubjectFactoryBase<TInput, TOutput>
Implements
IAsyncReactiveQubjectFactory<TInput, TOutput>
IAsyncReactiveSubjectFactory<TInput, TOutput>
IAsyncReactiveExpressible
IExpressible
Namespace: Reaqtor
Assembly: Reaqtor.Expressions.Core.dll
Syntax
public abstract class AsyncReactiveQubjectFactoryBase<TInput, TOutput> : Object, IAsyncReactiveQubjectFactory<TInput, TOutput>, IAsyncReactiveSubjectFactory<TInput, TOutput>, IAsyncReactiveExpressible, IExpressible
Type Parameters
Name Description
TInput

Type of the data received by the subjects created by the factory.

TOutput

Type of the data produced by the subjects created by the factory.

Constructors

AsyncReactiveQubjectFactoryBase(IAsyncReactiveQueryProvider)

Creates a new subject factory represented by an expression tree, using the specified associated query provider.

Declaration
protected AsyncReactiveQubjectFactoryBase(IAsyncReactiveQueryProvider provider)
Parameters
Type Name Description
IAsyncReactiveQueryProvider provider

Query provider associated with the subject factory.

Properties

Expression

Gets the expression tree representing the subject 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 subject factory.

Declaration
public IAsyncReactiveQueryProvider Provider { get; }
Property Value
Type Description
IAsyncReactiveQueryProvider

Methods

CreateAsync(Uri, Object, CancellationToken)

Creates a new stream with the specified stream URI.

Declaration
public Task<IAsyncReactiveQubject<TInput, TOutput>> CreateAsync(Uri streamUri, object state = null, CancellationToken token = null)
Parameters
Type Name Description
System.Uri streamUri

URI identifying the stream.

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<IAsyncReactiveQubject<TInput, TOutput>>

Task returning a subject object that can be used to send and receive data on the stream, or an exception if the creation request was unsuccessful.

CreateAsyncCore(Uri, Object, CancellationToken)

Creates a new stream with the specified stream URI.

Declaration
protected abstract Task<IAsyncReactiveQubject<TInput, TOutput>> CreateAsyncCore(Uri streamUri, object state, CancellationToken token)
Parameters
Type Name Description
System.Uri streamUri

URI identifying the stream.

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<IAsyncReactiveQubject<TInput, TOutput>>

Task returning a subject object that can be used to send and receive data on the stream, or an exception if the creation request was unsuccessful.

Explicit Interface Implementations

IAsyncReactiveSubjectFactory<TInput, TOutput>.CreateAsync(Uri, Object, CancellationToken)

Creates a new subject with the specified stream URI.

Declaration
Task<IAsyncReactiveSubject<TInput, TOutput>> IAsyncReactiveSubjectFactory<TInput, TOutput>.CreateAsync(Uri streamUri, object state, CancellationToken token)
Parameters
Type Name Description
System.Uri streamUri

URI identifying the stream.

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<IAsyncReactiveSubject<TInput, TOutput>>

Task returning a subject object that can be used to send and receive data on the stream, or an exception if the creation request was unsuccessful.

Implements

IAsyncReactiveQubjectFactory<TInput, TOutput>
IAsyncReactiveSubjectFactory<TInput, TOutput>
IAsyncReactiveExpressible
IExpressible
In This Article
Back to top Generated by DocFX