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
payloadTypeType
Properties
BackpressurePolicy
Backpressure policy emitted when Capacity is greater than zero.
public string BackpressurePolicy { get; set; }
Property Value
Capacity
Bounded capacity. Use 0 for an unbounded mailbox.
public int Capacity { get; set; }
Property Value
ErrorPolicy
Error policy emitted into the generated mailbox.
public string ErrorPolicy { get; set; }
Property Value
FactoryName
Name of the generated mailbox factory method.
public string FactoryName { get; set; }
Property Value
PayloadType
Message payload type accepted by the generated mailbox.
public Type PayloadType { get; }