Table of Contents

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

payloadType Type

Properties

FactoryName

Name of the generated factory method.

public string FactoryName { get; set; }

Property Value

string

PayloadType

Payload type persisted by the generated message store.

public Type PayloadType { get; }

Property Value

Type

StoreName

Name assigned to the generated message store.

public string StoreName { get; set; }

Property Value

string