IServiceRemotingContract.RequestResponseAsync(ArraySegment<Byte>, IEnumerable<ArraySegment<Byte>>) Method

Definition

Sends a message to the client and gets the response.

[System.ServiceModel.FaultContract(typeof(Microsoft.ServiceFabric.Services.Remoting.V2.RemoteException))]
[System.ServiceModel.OperationContract]
public System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Remoting.V2.Wcf.ResponseMessage> RequestResponseAsync (ArraySegment<byte> messageHeaders, System.Collections.Generic.IEnumerable<ArraySegment<byte>> requestBody);
[<System.ServiceModel.FaultContract(typeof(Microsoft.ServiceFabric.Services.Remoting.V2.RemoteException))>]
[<System.ServiceModel.OperationContract>]
abstract member RequestResponseAsync : ArraySegment<byte> * seq<ArraySegment<byte>> -> System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Remoting.V2.Wcf.ResponseMessage>
Public Function RequestResponseAsync (messageHeaders As ArraySegment(Of Byte), requestBody As IEnumerable(Of ArraySegment(Of Byte))) As Task(Of ResponseMessage)

Parameters

messageHeaders
System.ArraySegment<System.Byte>

Message Headers contains the information needed to deserialize request and to dispatch message to the service.

requestBody
System.Collections.Generic.IEnumerable<System.ArraySegment<System.Byte>>

Message Body contains a request in a serialized form.

Returns

System.Threading.Tasks.Task<ResponseMessage>

Response Body is a serialized response recived by the client

Attributes
System.ServiceModel.FaultContractAttribute System.ServiceModel.OperationContractAttribute

Applies to