NamedPipeClient.SendAsync(StreamingRequest, CancellationToken) 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.
Task used to send data over this client connection. Throws InvalidOperationException if called when the client is disconnected. Throws ArgumentNullException if message is null.
public System.Threading.Tasks.Task<Microsoft.Bot.Streaming.ReceiveResponse> SendAsync (Microsoft.Bot.Streaming.StreamingRequest message, System.Threading.CancellationToken cancellationToken = default);
abstract member SendAsync : Microsoft.Bot.Streaming.StreamingRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Streaming.ReceiveResponse>
override this.SendAsync : Microsoft.Bot.Streaming.StreamingRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Streaming.ReceiveResponse>
Public Function SendAsync (message As StreamingRequest, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ReceiveResponse)
Parameters
- message
- StreamingRequest
The StreamingRequest to send.
- cancellationToken
- CancellationToken
An optional CancellationToken used to signal this operation should be cancelled.
Returns
A Task that will produce an instance of ReceiveResponse on completion of the send operation.