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
source
IObservable<HarpMessage>The observable sequence whose messages to filter.
messageType
MessageTypeThe 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
source
IObservable<HarpMessage>The observable sequence whose messages to filter.
messageType
MessageTypeThe message type to test for a match.
allowErrors
booltrue
to 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
source
IObservable<HarpMessage>The observable sequence whose messages to filter.
address
intThe 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
source
IObservable<HarpMessage>The observable sequence whose 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 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
source
IObservable<HarpMessage>The observable sequence whose messages to filter.
address
intThe address to test for a match.
messageType
MessageTypeThe message type to test for a match.
Returns
- IObservable<HarpMessage>
An observable sequence that contains messages from the input sequence that match the specified
address
andmessageType
.
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
source
IObservable<HarpMessage>The observable sequence whose messages to filter.
address
intThe address to test for a match.
messageType
MessageTypeThe message type to test for a match.
allowErrors
booltrue
to 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
andmessageType
.