Class GenerateContentRouterAttribute
- Namespace
- PatternKit.Generators.Messaging
- Assembly
- PatternKit.Generators.Abstractions.dll
Generates a typed content-router factory for a partial class or struct.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Struct, AllowMultiple = false, Inherited = false)]
public sealed class GenerateContentRouterAttribute : Attribute
- Inheritance
-
GenerateContentRouterAttribute
- Inherited Members
Constructors
GenerateContentRouterAttribute(Type, Type)
Creates a content-router generator attribute.
public GenerateContentRouterAttribute(Type payloadType, Type resultType)
Parameters
Properties
FactoryName
Name of the generated factory method.
public string FactoryName { get; set; }
Property Value
PayloadType
Message payload type routed by the generated content router.
public Type PayloadType { get; }
Property Value
ResultType
Route handler result type returned by the generated content router.
public Type ResultType { get; }