Table of Contents

Class GenerateAggregatorAttribute

Namespace
PatternKit.Generators.Messaging
Assembly
PatternKit.Generators.Abstractions.dll

Generates a typed aggregator factory for a partial class or struct.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class GenerateAggregatorAttribute : Attribute
Inheritance
GenerateAggregatorAttribute
Inherited Members

Constructors

GenerateAggregatorAttribute(Type, Type, Type)

Creates an aggregator generator attribute.

public GenerateAggregatorAttribute(Type keyType, Type itemType, Type resultType)

Parameters

keyType Type
itemType Type
resultType Type

Properties

DuplicatePolicy

Duplicate message-id policy emitted into the generated aggregator. Supported values are Ignore, Include, and Replace.

public string DuplicatePolicy { get; set; }

Property Value

string

FactoryName

Name of the generated aggregator factory method.

public string FactoryName { get; set; }

Property Value

string

ItemType

Item payload type collected by the generated aggregator.

public Type ItemType { get; }

Property Value

Type

KeyType

Aggregation correlation key type.

public Type KeyType { get; }

Property Value

Type

ResultType

Result type projected when a group completes.

public Type ResultType { get; }

Property Value

Type