CepStream.Where<TPayload> Method (CepStream<TPayload>, Expression<Func<TPayload, Boolean>>)
Filters events from an input stream using a given filter function.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static CepStream<TPayload> Where<TPayload>(
this CepStream<TPayload> source,
Expression<Func<TPayload, bool>> filter
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static CepStream<TPayload>^ Where(
CepStream<TPayload>^ source,
Expression<Func<TPayload, bool>^>^ filter
)
static member Where<'TPayload> :
source:CepStream<'TPayload> *
filter:Expression<Func<'TPayload, bool>> -> CepStream<'TPayload>
<ExtensionAttribute>
Public Shared Function Where(Of TPayload) (
source As CepStream(Of TPayload),
filter As Expression(Of Func(Of TPayload, Boolean))
) As CepStream(Of TPayload)
Parameters
source
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>The source stream.
filter
Type: System.Linq.Expressions.Expression<Func<TPayload, Boolean>>The filter function.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TPayload>
The stream of filtered events.
Type Parameters
- TPayload
The type of the input event payload.
See Also
Where Overload
CepStream Class
Microsoft.ComplexEventProcessing.Linq Namespace
Return to top