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)

public static long Sum<TPayload>(
	this CepWindow<TPayload> window,
	Expression<Func<TPayload, long>> input
)

Parameters

window
Type: Microsoft.ComplexEventProcessing.Linq.CepWindow<TPayload>

The window that the sum is computed over.

input
Type: System.Linq.Expressions.Expression<Func<TPayload, Int64>>

The lambda expression which defines the input value for the summation based on an input event.

Return Value

Type: System.Int64

A value that contains the result of the summation.

Type Parameters

TPayload

The payload type of window events.

Return to top
Show: