Table of Contents

Class GenerateDynamicRouterAttribute

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

Generates a typed dynamic-router factory for a partial class or struct.

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

Constructors

GenerateDynamicRouterAttribute(Type, Type)

Creates a dynamic-router generator attribute.

public GenerateDynamicRouterAttribute(Type payloadType, Type resultType)

Parameters

payloadType Type
resultType Type

Properties

FactoryName

Name of the generated factory method.

public string FactoryName { get; set; }

Property Value

string

PayloadType

Message payload type routed by the generated dynamic router.

public Type PayloadType { get; }

Property Value

Type

ResultType

Route handler result type returned by the generated dynamic router.

public Type ResultType { get; }

Property Value

Type