Table of Contents

Class MessageEnvelopeHeaderAttribute

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

Declares a required header for a generated message envelope contract.

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

Constructors

MessageEnvelopeHeaderAttribute(string, Type)

Creates a message-envelope header declaration.

public MessageEnvelopeHeaderAttribute(string name, Type valueType)

Parameters

name string
valueType Type

Properties

Name

Header name written into MessageHeaders.

public string Name { get; }

Property Value

string

ParameterName

Optional generated factory parameter name. When omitted, the header name is converted to a camel-case identifier.

public string? ParameterName { get; set; }

Property Value

string

ValueType

Type of the generated factory parameter for this header.

public Type ValueType { get; }

Property Value

Type