Class SubjectBuilder
- Namespace
- Bonsai.Expressions
- Assembly
- Bonsai.Core.dll
Provides a base class for expression builders that broadcast the values of an observable sequence to multiple subscribers using a shared subject. This is an abstract class.
[WorkflowElementCategory(ElementCategory.Sink)]
public abstract class SubjectBuilder : SubjectExpressionBuilder, IExpressionBuilder, INamedElement
- Inheritance
-
SubjectBuilder
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
SubjectBuilder()
Initializes a new instance of the SubjectBuilder class.
protected SubjectBuilder()
Methods
Build(IEnumerable<Expression>)
Generates an Expression node from a collection of input arguments. The result can be chained with other builders in a workflow.
public override Expression Build(IEnumerable<Expression> arguments)
Parameters
arguments
IEnumerable<Expression>A collection of Expression nodes that represents the input arguments.
Returns
- Expression
An Expression tree node.
BuildSubject(Expression)
When overridden in a derived class, returns the expression that creates the shared subject.
protected abstract Expression BuildSubject(Expression expression)
Parameters
expression
ExpressionThe expression representing the observable input sequence.
Returns
- Expression
The Expression that creates the shared subject.