Class GenerateSplitterAttribute
- Namespace
- PatternKit.Generators.Messaging
- Assembly
- PatternKit.Generators.Abstractions.dll
Generates a typed splitter factory for a partial class or struct.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class GenerateSplitterAttribute : Attribute
- Inheritance
-
GenerateSplitterAttribute
- Inherited Members
Constructors
GenerateSplitterAttribute(Type, Type)
Creates a splitter generator attribute.
public GenerateSplitterAttribute(Type payloadType, Type itemType)
Parameters
Properties
FactoryName
Name of the generated splitter factory method.
public string FactoryName { get; set; }
Property Value
ItemType
Item payload type produced by the generated splitter.
public Type ItemType { get; }
Property Value
PayloadType
Message payload type accepted by the generated splitter.
public Type PayloadType { get; }