Share via


CepWindowExtensionMethods.UserDefinedAggregateWithMapping<TPayload, TUda, TAggregateInput, TAggregateOutput> Method

Calls a user-defined aggregate.

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

Syntax

public static TAggregateOutput UserDefinedAggregateWithMapping<TPayload, TUda, TAggregateInput, TAggregateOutput>(
    this CepWindow<TPayload> window,
    Expression<Func<TPayload, TAggregateInput>> aggregateInputExpr,
    Object configInfo
)
where TUda : CepAggregate<TAggregateInput, TAggregateOutput>

Type Parameters

  • TPayload
    Payload type of window events.
  • TUda
    Input event type of the user-defined aggregate.
  • TAggregateInput
    Input type of the aggregate.
  • TAggregateOutput
    Event type of the aggregate output.

Parameters

  • configInfo
    Type: System.Object
    Initialization information for the aggregate.

Return Value

Type: TAggregateOutput
The output of the user-defined aggregate.

Usage Note

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

CepWindowExtensionMethods Class

Microsoft.ComplexEventProcessing.Linq Namespace