Table of Contents

Class RouteAttribute

Namespace
Microsoft.Agents.Builder.App
Assembly
Microsoft.Agents.Builder.dll

Adds an AgentApplication Routes

RouteType:

Activity,       // { Type | RegEx | Selector}, Rank
Message,        // { Text | RegEx | Selector}, Rank
Event,          // { EventName | RegEx | Selector}, Rank
Conversation,   // { EventName | Selector}, Rank
HandOff,        // Selector, Rank
ReactionAdded,  // Rank
ReactionRemoved // Rank
[AttributeUsage(AttributeTargets.Method, Inherited = true)]
public class RouteAttribute : Attribute
Inheritance
RouteAttribute
Inherited Members

Constructors

RouteAttribute()

public RouteAttribute()

Properties

EventName

public string EventName { get; set; }

Property Value

string

Rank

public ushort Rank { get; set; }

Property Value

ushort

Regex

public string Regex { get; set; }

Property Value

string

RouteType

public RouteType RouteType { get; set; }

Property Value

RouteType

Selector

public string Selector { get; set; }

Property Value

string

Text

public string Text { get; set; }

Property Value

string

Type

public string Type { get; set; }

Property Value

string

Methods

AddRoute(AgentApplication, MethodInfo)

public void AddRoute(AgentApplication app, MethodInfo attributedMethod)

Parameters

app AgentApplication
attributedMethod MethodInfo