Table of Contents

Class GenerateMessageEnvelopeAttribute

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

Generates typed factories for a message envelope contract.

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

Constructors

GenerateMessageEnvelopeAttribute(Type)

Creates a message-envelope generator attribute.

public GenerateMessageEnvelopeAttribute(Type payloadType)

Parameters

payloadType Type

Properties

ContextFactoryName

Name of the generated context factory method.

public string ContextFactoryName { get; set; }

Property Value

string

FactoryName

Name of the generated message factory method.

public string FactoryName { get; set; }

Property Value

string

PayloadType

Payload type carried by the generated message factory.

public Type PayloadType { get; }

Property Value

Type