CepStream.GroupBy<TPayload, TGroupingKey, TResult> Method (CepStream<TPayload>, Expression<Func<TPayload, TGroupingKey>>, Expression<Func<TPayload, TResult>>)

 

Groups the source stream by the specified key selector functions and projects results using the element selector function.

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

Syntax

public static CepGroupingStreams<TResult, TGroupingKey> GroupBy<TPayload, TGroupingKey, TResult>(
    this CepStream<TPayload> source,
    Expression<Func<TPayload, TGroupingKey>> keySelector,
    Expression<Func<TPayload, TResult>> selector
)
public:
generic<typename TPayload, typename TGroupingKey, typename TResult>
[ExtensionAttribute]
static CepGroupingStreams<TResult, TGroupingKey>^ GroupBy(
    CepStream<TPayload>^ source,
    Expression<Func<TPayload, TGroupingKey>^>^ keySelector,
    Expression<Func<TPayload, TResult>^>^ selector
)
static member GroupBy<'TPayload, 'TGroupingKey, 'TResult> : 
        source:CepStream<'TPayload> *
        keySelector:Expression<Func<'TPayload, 'TGroupingKey>> *
        selector:Expression<Func<'TPayload, 'TResult>> -> CepGroupingStreams<'TResult, 'TGroupingKey>
<ExtensionAttribute>
Public Shared Function GroupBy(Of TPayload, TGroupingKey, TResult) (
    source As CepStream(Of TPayload),
    keySelector As Expression(Of Func(Of TPayload, TGroupingKey)),
    selector As Expression(Of Func(Of TPayload, TResult))
) As CepGroupingStreams(Of TResult, TGroupingKey)

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.CepGroupingStreams<TResult, TGroupingKey>

The groups of streams.

Type Parameters

  • TPayload
    The payload type of input events.
  • TGroupingKey
    The grouping key event type.
  • TResult
    The payload type of result events.

See Also

GroupBy Overload
CepStream Class
Microsoft.ComplexEventProcessing.Linq Namespace

Return to top