CepStream.SelectMany<TInput, TGroupingKey, TBind, TResult> Method (CepGroupingStreams<TInput, TGroupingKey>, Expression<Func<CepStream<TInput>, CepStream<TBind>>>, Expression<Func<IKey<TGroupingKey>, TBind, TResult>>)

Supports adding query logic inside a Group and Apply.

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

Syntax

public static CepStream<TResult> SelectMany<TInput, TGroupingKey, TBind, TResult>(
    this CepGroupingStreams<TInput, TGroupingKey> source,
    Expression<Func<CepStream<TInput>, CepStream<TBind>>> bind,
    Expression<Func<IKey<TGroupingKey>, TBind, TResult>> selector
)

Type Parameters

  • TInput
    Payload type of the input events .
  • TGroupingKey
    Payload type of the grouping key.
  • TBind
    Payload type of the bound events.
  • TResult
    The type of the output stream event payload.

Parameters

Return Value

Type: Microsoft.ComplexEventProcessing.Linq.CepStream<TResult>
A stream that can be used to further apply logic in the Group and Apply.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type CepGroupingStreams<TInput, TGroupingKey>. 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).

Remarks

For more information, see Group and Apply.

Examples

from e1 in inputStream
group e1 by e.i into gs
from e2 in gs
...

See Also

Reference

CepStream Class

SelectMany Overload

Microsoft.ComplexEventProcessing.Linq Namespace