Class ReactiveSubjectFactoryBase<TInput, TOutput, TArg1, TArg2, TArg3>
Base class for stream factories.
Inheritance
Implements
Namespace: Reaqtor
Assembly: Reaqtor.Local.Core.dll
Syntax
public abstract class ReactiveSubjectFactoryBase<TInput, TOutput, TArg1, TArg2, TArg3> : Object, IReactiveSubjectFactory<TInput, TOutput, TArg1, TArg2, TArg3>
Type Parameters
Name | Description |
---|---|
TInput | Type of the data received by the subjects created by the stream factory. |
TOutput | Type of the data produced by the subjects created by the stream factory. |
TArg1 | Type of the first parameter passed to the subject factory. |
TArg2 | Type of the second parameter passed to the subject factory. |
TArg3 | Type of the third parameter passed to the subject factory. |
Constructors
ReactiveSubjectFactoryBase()
Declaration
protected ReactiveSubjectFactoryBase()
Methods
Create(Uri, TArg1, TArg2, TArg3, Object)
Creates a new subject with the specified stream URI.
Declaration
public IReactiveSubject<TInput, TOutput> Create(Uri streamUri, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state = null)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | streamUri | URI identifying the stream. |
TArg1 | arg1 | First parameter to pass to the subject factory. |
TArg2 | arg2 | Second parameter to pass to the subject factory. |
TArg3 | arg3 | Third parameter to pass to the subject factory. |
System.Object | state | Additional metadata to associate with the artifact. Implementations can interpret this value, or ignore it. |
Returns
Type | Description |
---|---|
IReactiveSubject<TInput, TOutput> | A subject object that can be used to send and receive data on the stream, or an exception if the creation request was unsuccessful. |
CreateCore(Uri, TArg1, TArg2, TArg3, Object)
Creates a new subject with the specified stream URI.
Declaration
protected abstract IReactiveSubject<TInput, TOutput> CreateCore(Uri streamUri, TArg1 arg1, TArg2 arg2, TArg3 arg3, object state)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | streamUri | URI identifying the stream. |
TArg1 | arg1 | First parameter to pass to the subject factory. |
TArg2 | arg2 | Second parameter to pass to the subject factory. |
TArg3 | arg3 | Third parameter to pass to the subject factory. |
System.Object | state | Additional metadata to associate with the artifact. Implementations can interpret this value, or ignore it. |
Returns
Type | Description |
---|---|
IReactiveSubject<TInput, TOutput> | A subject object that can be used to send and receive data on the stream, or an exception if the creation request was unsuccessful. |