Class GenerateMessageStoreAttribute
- Namespace
- PatternKit.Generators.Messaging
- Assembly
- PatternKit.Generators.Abstractions.dll
Generates a typed message-store factory for a partial class or struct.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class GenerateMessageStoreAttribute : Attribute
- Inheritance
-
GenerateMessageStoreAttribute
- Inherited Members
Constructors
GenerateMessageStoreAttribute(Type)
Creates a message-store generator attribute.
public GenerateMessageStoreAttribute(Type payloadType)
Parameters
payloadTypeType
Properties
FactoryName
Name of the generated factory method.
public string FactoryName { get; set; }
Property Value
PayloadType
Payload type persisted by the generated message store.
public Type PayloadType { get; }
Property Value
StoreName
Name assigned to the generated message store.
public string StoreName { get; set; }