AgentNotificationExtensions.OnAgentNotification Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a handler for agent notifications from a specific channel.
public static void OnAgentNotification(this Microsoft.Agents.Builder.App.AgentApplication app, Microsoft.Agents.Core.Models.ChannelId channelId, Microsoft.Agents.A365.Notifications.Extensions.AgentNotificationHandler routeHandler, ushort rank = 32767, string[] autoSignInHandlers = default);
static member OnAgentNotification : Microsoft.Agents.Builder.App.AgentApplication * Microsoft.Agents.Core.Models.ChannelId * Microsoft.Agents.A365.Notifications.Extensions.AgentNotificationHandler * uint16 * string[] -> unit
<Extension()>
Public Sub OnAgentNotification (app As AgentApplication, channelId As ChannelId, routeHandler As AgentNotificationHandler, Optional rank As UShort = 32767, Optional autoSignInHandlers As String() = Nothing)
Parameters
- app
- AgentApplication
The agent application to extend.
- channelId
- ChannelId
The channel identifier to listen for notifications.
- routeHandler
- AgentNotificationHandler
The handler to invoke when a notification is received.
- rank
- UInt16
The route priority rank (default is 32767).
- autoSignInHandlers
- String[]
Optional array of auto sign-in handlers.