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
- window
Type: Microsoft.ComplexEventProcessing.Linq.CepWindow<TPayload>
Window that aggregate is applied to.
- aggregateInputExpr
Type: System.Linq.Expressions.Expression<Func<TPayload, TAggregateInput>>
Expression that transform the input event type to the aggregate input event type.
- 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).