Class ContentRouteAttribute
- Namespace
- PatternKit.Generators.Messaging
- Assembly
- PatternKit.Generators.Abstractions.dll
Marks a static method as a generated content-router route handler.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class ContentRouteAttribute : Attribute
- Inheritance
-
ContentRouteAttribute
- Inherited Members
Constructors
ContentRouteAttribute(string, int, string)
Creates a content-router route attribute.
public ContentRouteAttribute(string name, int order, string predicateMethodName)
Parameters
Properties
Name
Route name used for diagnostics and duplicate validation.
public string Name { get; }
Property Value
Order
Route order in the generated content router.
public int Order { get; }
Property Value
PredicateMethodName
Name of the static predicate method used by this route.
public string PredicateMethodName { get; }