StreamingConnection.SendStreamingRequestAsync 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.
Sends a streaming request through the connection.
public virtual System.Threading.Tasks.Task<Microsoft.Bot.Streaming.ReceiveResponse> SendStreamingRequestAsync (Microsoft.Bot.Streaming.StreamingRequest request, System.Threading.CancellationToken cancellationToken = default);
abstract member SendStreamingRequestAsync : Microsoft.Bot.Streaming.StreamingRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Streaming.ReceiveResponse>
override this.SendStreamingRequestAsync : Microsoft.Bot.Streaming.StreamingRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Streaming.ReceiveResponse>
Public Overridable Function SendStreamingRequestAsync (request As StreamingRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ReceiveResponse)
Parameters
- request
- StreamingRequest
StreamingRequest to be sent.
- cancellationToken
- CancellationToken
CancellationToken to cancel the send process.
Returns
The ReceiveResponse returned from the client.