Table of Contents

Class DynamicRouteAttribute

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

Marks a static method as an initial generated dynamic-router route handler.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class DynamicRouteAttribute : Attribute
Inheritance
DynamicRouteAttribute
Inherited Members

Constructors

DynamicRouteAttribute(string, int, string)

Creates a dynamic-router route attribute.

public DynamicRouteAttribute(string name, int order, string predicateMethodName)

Parameters

name string
order int
predicateMethodName string

Properties

Name

Route name used for replacement and diagnostics.

public string Name { get; }

Property Value

string

Order

Initial route order in the generated dynamic router.

public int Order { get; }

Property Value

int

PredicateMethodName

Name of the static predicate method used by this route.

public string PredicateMethodName { get; }

Property Value

string