Table of Contents

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

name string
order int
predicateMethodName string

Properties

Name

Route name used for diagnostics and duplicate validation.

public string Name { get; }

Property Value

string

Order

Route order in the generated content 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