VisualizerObjectSourceClient.ReplaceTargetObjectAsync Method

Definition

Overloads

ReplaceTargetObjectAsync(JToken, CancellationToken)

Requests the visualizer object source in the debug target process to replace the object being visualized.

ReplaceTargetObjectAsync(ReadOnlySequence<Byte>, CancellationToken)

Requests the visualizer object source in the debug target process to replace the object being visualized.

ReplaceTargetObjectAsync<TMessage>(TMessage, JsonSerializer, CancellationToken)

Requests the visualizer object source in the debug target process to replace the object being visualized.

ReplaceTargetObjectAsync(JToken, CancellationToken)

Requests the visualizer object source in the debug target process to replace the object being visualized.

public virtual System.Threading.Tasks.Task ReplaceTargetObjectAsync (Newtonsoft.Json.Linq.JToken message, System.Threading.CancellationToken cancellationToken);
abstract member ReplaceTargetObjectAsync : Newtonsoft.Json.Linq.JToken * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ReplaceTargetObjectAsync : Newtonsoft.Json.Linq.JToken * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ReplaceTargetObjectAsync (message As JToken, cancellationToken As CancellationToken) As Task

Parameters

message
Newtonsoft.Json.Linq.JToken

The content of the message sent to the visualizer object source. The format of message is defined by the chosen visualizer object source.

cancellationToken
CancellationToken

Cancellation token for the async call.

Returns

A Task tracking the completion of the async call.

Applies to

ReplaceTargetObjectAsync(ReadOnlySequence<Byte>, CancellationToken)

Requests the visualizer object source in the debug target process to replace the object being visualized.

public abstract System.Threading.Tasks.Task ReplaceTargetObjectAsync (System.Buffers.ReadOnlySequence<byte> message, System.Threading.CancellationToken cancellationToken);
abstract member ReplaceTargetObjectAsync : System.Buffers.ReadOnlySequence<byte> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function ReplaceTargetObjectAsync (message As ReadOnlySequence(Of Byte), cancellationToken As CancellationToken) As Task

Parameters

message
ReadOnlySequence<Byte>

The content of the message sent to the visualizer object source. The format of message is defined by the chosen visualizer object source.

cancellationToken
CancellationToken

Cancellation token for the async call.

Returns

A Task tracking the completion of the async call.

Applies to

ReplaceTargetObjectAsync<TMessage>(TMessage, JsonSerializer, CancellationToken)

Requests the visualizer object source in the debug target process to replace the object being visualized.

public virtual System.Threading.Tasks.Task ReplaceTargetObjectAsync<TMessage> (TMessage message, Newtonsoft.Json.JsonSerializer? jsonSerializer, System.Threading.CancellationToken cancellationToken);
abstract member ReplaceTargetObjectAsync : 'Message * Newtonsoft.Json.JsonSerializer * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.ReplaceTargetObjectAsync : 'Message * Newtonsoft.Json.JsonSerializer * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function ReplaceTargetObjectAsync(Of TMessage) (message As TMessage, jsonSerializer As JsonSerializer, cancellationToken As CancellationToken) As Task

Type Parameters

TMessage

The type of the message encoded into JSON and sent to the visualizer object source.

Parameters

message
TMessage

The object to be encoded into JSON and sent to the visualizer object source.

jsonSerializer
Newtonsoft.Json.JsonSerializer

Optional json serializer used to convert message to JSON and convert the returned object from JSON.

cancellationToken
CancellationToken

Cancellation token for the async call.

Returns

A Task tracking the completion of the async call.

Applies to