Table of Contents

Class MulticastSubject

Namespace
Bonsai.Expressions
Assembly
Bonsai.Core.dll

Represents an expression builder that pushes a sequence of values into a shared subject.

The MulticastSubject operator works like a sink which accesses the subject with the specified name, at the same scope level or above, and forwards any values emitted by the source sequence to the shared subject. Depending on the behavior of the subject, these values will then be passed to any operators subscribed to the subject, including any termination and error notifications.

MulticastSubject workflow

For more information on subjects, the different types of subject available, and the rules for naming and finding subjects, see the Subjects section of the manual.

[WorkflowElementCategory(ElementCategory.Sink)]
public class MulticastSubject : SingleArgumentExpressionBuilder, IExpressionBuilder, INamedElement
Inheritance
MulticastSubject
Implements
Inherited Members
Extension Methods

Properties

Name

Gets or sets the name of the shared subject.

[TypeConverter(typeof(SubjectNameConverter))]
public string Name { get; set; }

Property Value

string

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.