Method Where
Where(IObservable<HarpMessage>, MessageType)
Filters the elements of an observable sequence of Harp messages based on their message type.
public static IObservable<HarpMessage> Where(this IObservable<HarpMessage> source, MessageType messageType)
Parameters
sourceIObservable<HarpMessage>The observable sequence whose messages to filter.
messageTypeMessageTypeThe message type to test for a match.
Returns
- IObservable<HarpMessage>
An observable sequence that contains messages from the input sequence that match the specified
messageType.
Where(IObservable<HarpMessage>, MessageType, bool)
Filters the elements of an observable sequence of Harp messages based on their message type.
public static IObservable<HarpMessage> Where(this IObservable<HarpMessage> source, MessageType messageType, bool allowErrors)
Parameters
sourceIObservable<HarpMessage>The observable sequence whose messages to filter.
messageTypeMessageTypeThe message type to test for a match.
allowErrorsbooltrueto allow error messages in the filter; otherwise,false.
Returns
- IObservable<HarpMessage>
An observable sequence that contains messages from the input sequence that match the specified
messageType.
Where(IObservable<HarpMessage>, int)
Filters the elements of an observable sequence of Harp messages based on their address.
public static IObservable<HarpMessage> Where(this IObservable<HarpMessage> source, int address)
Parameters
sourceIObservable<HarpMessage>The observable sequence whose messages to filter.
addressintThe address to test for a match.
Returns
- IObservable<HarpMessage>
An observable sequence that contains messages from the input sequence that match the specified
address.
Where(IObservable<HarpMessage>, int, bool)
Filters the elements of an observable sequence of Harp messages based on their address.
public static IObservable<HarpMessage> Where(this IObservable<HarpMessage> source, int address, bool allowErrors)
Parameters
sourceIObservable<HarpMessage>The observable sequence whose messages to filter.
addressintThe address to test for a match.
allowErrorsbooltrueto allow error messages in the filter; otherwise,false.
Returns
- IObservable<HarpMessage>
An observable sequence that contains messages from the input sequence that match the specified
address.
Where(IObservable<HarpMessage>, int, MessageType)
Filters the elements of an observable sequence of Harp messages based on their address and message type.
public static IObservable<HarpMessage> Where(this IObservable<HarpMessage> source, int address, MessageType messageType)
Parameters
sourceIObservable<HarpMessage>The observable sequence whose messages to filter.
addressintThe address to test for a match.
messageTypeMessageTypeThe message type to test for a match.
Returns
- IObservable<HarpMessage>
An observable sequence that contains messages from the input sequence that match the specified
addressandmessageType.
Where(IObservable<HarpMessage>, int, MessageType, bool)
Filters the elements of an observable sequence of Harp messages based on their address and message type.
public static IObservable<HarpMessage> Where(this IObservable<HarpMessage> source, int address, MessageType messageType, bool allowErrors)
Parameters
sourceIObservable<HarpMessage>The observable sequence whose messages to filter.
addressintThe address to test for a match.
messageTypeMessageTypeThe message type to test for a match.
allowErrorsbooltrueto allow error messages in the filter; otherwise,false.
Returns
- IObservable<HarpMessage>
An observable sequence that contains messages from the input sequence that match the specified
addressandmessageType.