IAggregate<TInput,TState,TResult> Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Interface used by all aggregates.
public interface IAggregate<TInput,TState,TResult>
type IAggregate<'Input, 'State, 'Result> = interface
Public Interface IAggregate(Of TInput, TState, TResult)
Type Parameters
- TInput
The type of the input being aggregated.
- TState
The type of the state object used for intermediate computation.
- TResult
The type of the computed result of the aggregation.
- Derived
Methods
Accumulate() |
Provides an expression that describes how to take the aggregate state and a new data object and compute a new aggregate state. |
ComputeResult() |
Provides an expression that describes how to compute a final result from an aggregate state. |
Deaccumulate() |
Provides an expression that describes how to take the aggregate state and a retracted data object and compute a new aggregate state. |
Difference() |
Provides an expression that describes how to take two different aggregate states and subtract one from the other. |
InitialState() |
Provides an expression that creates the initial state for the aggregate computation. |