Freigeben über


AgentInterfaceAttribute Class

Definition

Declares a transport protocol for interacting with the agent. This allows agents to expose the same functionality over multiple transport mechanisms.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public class AgentInterfaceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type AgentInterfaceAttribute = class
    inherit Attribute
Public Class AgentInterfaceAttribute
Inherits Attribute
Inheritance
AgentInterfaceAttribute
Attributes

Remarks

This is optional if there is a single AgentApplication in the project. If there are multiple AgentApplications, this attribute must be used to specify the transport protocol and path for each AgentApplication.

The protocol argument is host and protocol specific. In Agents SDK, see AgentTransportProtocol.

Constructors

Name Description
AgentInterfaceAttribute(String, String, String)

Declares a transport protocol for interacting with the agent. This allows agents to expose the same functionality over multiple transport mechanisms.

Properties

Name Description
Path

The relative path where this interface is available.

"/api/messages",

ProcessDelegate

The name of the AgentApplication method that will process requests for this interface.

Protocol

The transport protocol supported at this URL.

Applies to