Share via


CustomAggregateMethodAnnotation Class

Definition

Allows client to tell OData which are the custom aggregation methods defined. In order to do it, it must receive a methodToken - that is the full identifier of the method in the OData URL - and an IDictionary that maps the input type of the aggregation method to its MethodInfo.

public class CustomAggregateMethodAnnotation
type CustomAggregateMethodAnnotation = class
Public Class CustomAggregateMethodAnnotation
Inheritance
CustomAggregateMethodAnnotation

Constructors

CustomAggregateMethodAnnotation()

Initializes a new instance of the CustomAggregateMethodAnnotation class.

Methods

AddMethod(String, IDictionary<Type,MethodInfo>)

Adds all implementations of a method that share the same methodToken.

GetMethodInfo(String, Type, MethodInfo)

Get an implementation of a method with the specifies returnType and methodToken. If there's no method that matches the requirements, returns null.

Applies to