Table of Contents

Method Event

Namespace
Bonsai.Harp
Assembly
Bonsai.Harp.dll

Event(IObservable<HarpMessage>, int)

Filters the elements of an observable sequence of Harp event messages based on their address.

public static IObservable<HarpMessage> Event(this IObservable<HarpMessage> source, int address)

Parameters

source IObservable<HarpMessage>

The observable sequence whose event messages to filter.

address int

The address to test for a match.

Returns

IObservable<HarpMessage>

An observable sequence that contains event messages from the input sequence that match the specified address.

Event(IObservable<HarpMessage>, int, bool)

Filters the elements of an observable sequence of Harp event messages based on their address.

public static IObservable<HarpMessage> Event(this IObservable<HarpMessage> source, int address, bool allowErrors)

Parameters

source IObservable<HarpMessage>

The observable sequence whose event messages to filter.

address int

The address to test for a match.

allowErrors bool

true to allow error messages in the filter; otherwise, false.

Returns

IObservable<HarpMessage>

An observable sequence that contains event messages from the input sequence that match the specified address.