共用方式為


BotFrameworkHttpAdapter.CreateStreamingRequestHandler 方法

定義

StreamingRequestHandler建立 ,以處理新的 Web 通訊端連線要求。

public virtual Microsoft.Bot.Builder.Streaming.StreamingRequestHandler CreateStreamingRequestHandler (Microsoft.Bot.Builder.IBot bot, System.Net.WebSockets.WebSocket socket, string audience);
abstract member CreateStreamingRequestHandler : Microsoft.Bot.Builder.IBot * System.Net.WebSockets.WebSocket * string -> Microsoft.Bot.Builder.Streaming.StreamingRequestHandler
override this.CreateStreamingRequestHandler : Microsoft.Bot.Builder.IBot * System.Net.WebSockets.WebSocket * string -> Microsoft.Bot.Builder.Streaming.StreamingRequestHandler
Public Overridable Function CreateStreamingRequestHandler (bot As IBot, socket As WebSocket, audience As String) As StreamingRequestHandler

參數

bot
IBot

IBot 處理要求的實作。

socket
WebSocket

WebSocket 接收要求所在的 。

audience
String

連入連線要求的授權物件。

傳回

傳回新的 StreamingRequestHandler 實作。

適用於