Table of Contents

Class Defer

Namespace
Bonsai.Reactive
Assembly
Bonsai.Core.dll

Represents an expression builder that creates a new observable sequence for each subscription using the encapsulated workflow.

Marble diagram

The Defer operator uses the nested workflow to specify the constructed sequence. All input sequences to the outer Defer node will be routed to the inner WorkflowInput nodes, and all notifications emitted by the inner WorkflowOutput node will be emitted by the outer Defer node. Multiple subscriptions can be active simultaneously, in which case the nested workflow will run multiple times and is considered to be reentrant.

public class Defer : WorkflowExpressionBuilder, IWorkflowExpressionBuilder, INamedElement, IPropertyMappingBuilder, IExpressionBuilder
Inheritance
Defer
Implements
Inherited Members
Extension Methods

Constructors

Defer()

Initializes a new instance of the Defer class.

public Defer()

Defer(ExpressionBuilderGraph)

Initializes a new instance of the Defer class with the specified expression builder workflow.

public Defer(ExpressionBuilderGraph workflow)

Parameters

workflow ExpressionBuilderGraph

The expression builder workflow instance that will be used by this builder to generate the output expression tree.

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.