Table of Contents

Class GenerateCorrelationIdentifierAttribute

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

Generates a factory for the Correlation Identifier enterprise integration pattern.

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

Constructors

GenerateCorrelationIdentifierAttribute(Type)

Creates a correlation identifier generator attribute.

public GenerateCorrelationIdentifierAttribute(Type payloadType)

Parameters

payloadType Type

The message payload type.

Properties

FactoryName

The generated factory method name.

public string FactoryName { get; set; }

Property Value

string

HeaderName

The header used to carry the correlation identifier.

public string HeaderName { get; set; }

Property Value

string

PayloadType

The message payload type.

public Type PayloadType { get; }

Property Value

Type

PreserveExisting

Whether generated configuration preserves an existing identifier.

public bool PreserveExisting { get; set; }

Property Value

bool