Table of Contents

Class GenerateMailboxAttribute

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

Generates a typed mailbox factory for a partial class or struct.

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

Constructors

GenerateMailboxAttribute(Type)

Creates a mailbox generator attribute.

public GenerateMailboxAttribute(Type payloadType)

Parameters

payloadType Type

Properties

BackpressurePolicy

Backpressure policy emitted when Capacity is greater than zero.

public string BackpressurePolicy { get; set; }

Property Value

string

Capacity

Bounded capacity. Use 0 for an unbounded mailbox.

public int Capacity { get; set; }

Property Value

int

ErrorPolicy

Error policy emitted into the generated mailbox.

public string ErrorPolicy { get; set; }

Property Value

string

FactoryName

Name of the generated mailbox factory method.

public string FactoryName { get; set; }

Property Value

string

PayloadType

Message payload type accepted by the generated mailbox.

public Type PayloadType { get; }

Property Value

Type