CepStream.ThenBy<TPayload, TOrderKey> Method (CepOrderedStream<TPayload>, Expression<Func<TPayload, TOrderKey>>)
Orders an ordered stream by another order key as indicated by rankSelector.
Namespace: Microsoft.ComplexEventProcessing.Linq
Assembly: Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)
Syntax
public static CepOrderedStream<TPayload> ThenBy<TPayload, TOrderKey>(
this CepOrderedStream<TPayload> source,
Expression<Func<TPayload, TOrderKey>> rankSelector
)
public:
generic<typename TPayload, typename TOrderKey>
[ExtensionAttribute]
static CepOrderedStream<TPayload>^ ThenBy(
CepOrderedStream<TPayload>^ source,
Expression<Func<TPayload, TOrderKey>^>^ rankSelector
)
static member ThenBy<'TPayload, 'TOrderKey> :
source:CepOrderedStream<'TPayload> *
rankSelector:Expression<Func<'TPayload, 'TOrderKey>> -> CepOrderedStream<'TPayload>
<ExtensionAttribute>
Public Shared Function ThenBy(Of TPayload, TOrderKey) (
source As CepOrderedStream(Of TPayload),
rankSelector As Expression(Of Func(Of TPayload, TOrderKey))
) As CepOrderedStream(Of TPayload)
Parameters
source
Type: Microsoft.ComplexEventProcessing.Linq.CepOrderedStream<TPayload>The stream source to order against.
rankSelector
Type: System.Linq.Expressions.Expression<Func<TPayload, TOrderKey>>The expression whose value is used to compare events against each other.
Return Value
Type: Microsoft.ComplexEventProcessing.Linq.CepOrderedStream<TPayload>
An ordered stream that can furthur be ranked, for example, by using Take().
Type Parameters
- TPayload
The payload type of input events.
- TOrderKey
The type of the ordering key.
See Also
CepStream Class
Microsoft.ComplexEventProcessing.Linq Namespace
Return to top