Method Event
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
intThe 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
intThe address to test for a match.
allowErrors
booltrue
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
.