StreamingRequestHandler Class
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.
A request handler that processes incoming requests sent over an IStreamingTransport and adheres to the Bot Framework Protocol v3 with Streaming Extensions.
public class StreamingRequestHandler : Microsoft.Bot.Streaming.RequestHandler
type StreamingRequestHandler = class
inherit RequestHandler
Public Class StreamingRequestHandler
Inherits RequestHandler
- Inheritance
Constructors
| StreamingRequestHandler(IBot, IStreamingActivityProcessor, String, ILogger) |
Initializes a new instance of the StreamingRequestHandler class and establishes a connection over a Named Pipe to a streaming channel. |
| StreamingRequestHandler(IBot, IStreamingActivityProcessor, String, String, ILogger) |
Initializes a new instance of the StreamingRequestHandler class and establishes a connection over a Named Pipe to a streaming channel. |
| StreamingRequestHandler(IBot, IStreamingActivityProcessor, WebSocket, ILogger) |
Initializes a new instance of the StreamingRequestHandler class and establishes a connection over a WebSocket to a streaming channel. |
| StreamingRequestHandler(IBot, IStreamingActivityProcessor, WebSocket, String, ILogger) |
Initializes a new instance of the StreamingRequestHandler class and establishes a connection over a WebSocket to a streaming channel. |
Properties
| Audience |
Gets the intended recipient of Activity sent from this StreamingRequestHandler. |
| ServiceUrl |
Gets the URL of the channel endpoint this StreamingRequestHandler receives requests from. |
Methods
| ConversationAddedTime(String) |
Gets the DateTime when the conversation was added to this request handler. |
| ForgetConversation(String) |
Removes the given conversation from this instance of the StreamingRequestHandler's collection of tracked conversations. |
| HasConversation(String) |
Checks to see if the set of conversations this StreamingRequestHandler has received requests for contains the passed in conversation ID. |
| ListenAsync() |
Begins listening for incoming requests over this StreamingRequestHandler's server. |
| ProcessRequestAsync(ReceiveRequest, ILogger<RequestHandler>, Object, CancellationToken) |
Handles incoming requests. |
| SendActivityAsync(Activity, CancellationToken) |
Converts an Activity into a StreamingRequest and sends it to the channel this StreamingRequestHandler is connected to. |
| SendStreamingRequestAsync(StreamingRequest, CancellationToken) |
Sends a StreamingRequest to the connected streaming channel. |