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
payloadTypeType
Properties
ContextFactoryName
Name of the generated context factory method.
public string ContextFactoryName { get; set; }
Property Value
FactoryName
Name of the generated message factory method.
public string FactoryName { get; set; }
Property Value
PayloadType
Payload type carried by the generated message factory.
public Type PayloadType { get; }