IServiceRemotingClient.RequestResponseAsync(ServiceRemotingMessageHeaders, Byte[]) Method

Definition

Sends a message to the service and gets a response back.

public System.Threading.Tasks.Task<byte[]> RequestResponseAsync (Microsoft.ServiceFabric.Services.Remoting.V1.ServiceRemotingMessageHeaders messageHeaders, byte[] requestBody);
abstract member RequestResponseAsync : Microsoft.ServiceFabric.Services.Remoting.V1.ServiceRemotingMessageHeaders * byte[] -> System.Threading.Tasks.Task<byte[]>
Public Function RequestResponseAsync (messageHeaders As ServiceRemotingMessageHeaders, requestBody As Byte()) As Task(Of Byte())

Parameters

messageHeaders
ServiceRemotingMessageHeaders

The message headers.

requestBody
Byte[]

The message body.

Returns

Task<Byte[]>

Returns the response body.

Applies to