Share via


IVisualizerTarget.RequestDataAsync Method

Definition

Sends a message to the visualizer object source in the target process and returns the corresponding response.

public System.Threading.Tasks.Task<System.Buffers.ReadOnlySequence<byte>?> RequestDataAsync (System.Buffers.ReadOnlySequence<byte>? data, System.Threading.CancellationToken cancellationToken);
abstract member RequestDataAsync : Nullable<System.Buffers.ReadOnlySequence<byte>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Nullable<System.Buffers.ReadOnlySequence<byte>>>
Public Function RequestDataAsync (data As Nullable(Of ReadOnlySequence(Of Byte)), cancellationToken As CancellationToken) As Task(Of Nullable(Of ReadOnlySequence(Of Byte)))

Parameters

data
Nullable<ReadOnlySequence<Byte>>

The optional content of the message. The format of data is defined by the chosen visualizer object source.

cancellationToken
CancellationToken

Cancellation token for the async call.

Returns

The optional response to the message. The format of data is defined by the chosen visualizer object source.

Exceptions

When the visualizer target is unavailable or becomes unavailable before the call can be completed.

Applies to