Table of Contents

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

payloadType Type
itemType Type

Properties

FactoryName

Name of the generated splitter factory method.

public string FactoryName { get; set; }

Property Value

string

ItemType

Item payload type produced by the generated splitter.

public Type ItemType { get; }

Property Value

Type

PayloadType

Message payload type accepted by the generated splitter.

public Type PayloadType { get; }

Property Value

Type