Share via


CepStream.ThenByDescending<TPayload, TOrderKey> Method

Orders an ordered stream by another orderKey as indicated by rankSelector.

Namespace:  Microsoft.ComplexEventProcessing.Linq
Assembly:  Microsoft.ComplexEventProcessing (in Microsoft.ComplexEventProcessing.dll)

Syntax

public static CepOrderedStream<TPayload> ThenByDescending<TPayload, TOrderKey>(
    this CepOrderedStream<TPayload> source,
    Expression<Func<TPayload, TOrderKey>> rankSelector
)

Type Parameters

  • TPayload
    Payload type of the input events.
  • TOrderKey
    Type of the order key.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.CepOrderedStream<TPayload>
An ordered stream that can further be ranked, for example, by using Take().

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CepOrderedStream<TPayload>. When you use instance method syntax to call this method, omit the first parameter. For more information, see https://msdn.microsoft.com/en-us/library/bb384936(v=sql.105) or https://msdn.microsoft.com/en-us/library/bb383977(v=sql.105).

See Also

Reference

CepStream Class

Microsoft.ComplexEventProcessing.Linq Namespace