Table of Contents

Class ParseMessagePayload

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

Represents an operator which extracts the payload data from an observable sequence of Harp messages.

public class ParseMessagePayload : SelectBuilder, IExpressionBuilder
Inheritance
ParseMessagePayload
Implements
Inherited Members

Properties

Address

Gets or sets the expected message address. This parameter is optional.

public int? Address { get; set; }

Property Value

int?

IsArray

Gets or sets a value indicating whether the payload is an array.

public bool IsArray { get; set; }

Property Value

bool

PayloadType

Gets or sets the type of payload data to parse.

public PayloadType PayloadType { get; set; }

Property Value

PayloadType

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.

BuildSelector(Expression)

Returns the expression that specifies how to extract the payload data from a valid Harp message.

protected override Expression BuildSelector(Expression expression)

Parameters

expression Expression

The input parameter to the selector.

Returns

Expression

The Expression that maps the input Harp message parameter to the specified payload data type.