CepWindowExtensionMethods.Sum<TPayload> Method (CepWindow<TPayload>, Expression<Func<TPayload, Int64>>)

 

Computes the sum of all events in a window. The value to compute the sum over is defined in the input expression parameter.

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

Syntax

public static long Sum<TPayload>(
    this CepWindow<TPayload> window,
    Expression<Func<TPayload, long>> input
)
public:
generic<typename TPayload>
[ExtensionAttribute]
static long long Sum(
    CepWindow<TPayload>^ window,
    Expression<Func<TPayload, long long>^>^ input
)
static member Sum<'TPayload> : 
        window:CepWindow<'TPayload> *
        input:Expression<Func<'TPayload, int64>> -> int64
<ExtensionAttribute>
Public Shared Function Sum(Of TPayload) (
    window As CepWindow(Of TPayload),
    input As Expression(Of Func(Of TPayload, Long))
) As Long

Parameters

Return Value

Type: System.Int64

A value that contains the result of the summation.

Type Parameters

  • TPayload
    The payload type of window events.

See Also

Sum Overload
CepWindowExtensionMethods Class
Microsoft.ComplexEventProcessing.Linq Namespace

Return to top