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
Properties
Name
Route name used for replacement and diagnostics.
public string Name { get; }
Property Value
Order
Initial route order in the generated dynamic router.
public int Order { get; }
Property Value
PredicateMethodName
Name of the static predicate method used by this route.
public string PredicateMethodName { get; }