ProxyBase.ContinueWithResultV2<TRetval>(Task<IServiceRemotingResponseMessageBody>) Method

Definition

Called by the generated proxy class to get the result from the response body.

protected System.Threading.Tasks.Task<TRetval> ContinueWithResultV2<TRetval> (System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessageBody> task);
member this.ContinueWithResultV2 : System.Threading.Tasks.Task<Microsoft.ServiceFabric.Services.Remoting.V2.IServiceRemotingResponseMessageBody> -> System.Threading.Tasks.Task<'Retval>
Protected Function ContinueWithResultV2(Of TRetval) (task As Task(Of IServiceRemotingResponseMessageBody)) As Task(Of TRetval)

Type Parameters

TRetval

Type of the remote method return value.

Parameters

task
Task<IServiceRemotingResponseMessageBody>

A task that represents the asynchronous operation for remote method call.

Returns

Task<TRetval>

A task that represents the asynchronous operation for remote method call. The value of the TRetval contains the remote method return value.

Applies to