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
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
FactoryName
Name of the generated aggregator factory method.
public string FactoryName { get; set; }
Property Value
ItemType
Item payload type collected by the generated aggregator.
public Type ItemType { get; }
Property Value
KeyType
Aggregation correlation key type.
public Type KeyType { get; }
Property Value
ResultType
Result type projected when a group completes.
public Type ResultType { get; }