Share via


ProxyBase Class

Definition

The base class used by remoting code generator to generate the proxy for the remoted interfaces.

public abstract class ProxyBase
type ProxyBase = class
Public MustInherit Class ProxyBase
Inheritance
ProxyBase
Derived

Constructors

ProxyBase()

Initializes a new instance of the ProxyBase class.

Methods

CheckIfItsWrappedRequest(IServiceRemotingRequestMessageBody)

This check if we are wrapping remoting message or not.

ContinueWith(Task<Object>)

This method is used by the generated proxy type and should be used directly. This method converts the Task with object return value to a Task without the return value for the void method invocation.

ContinueWithResultV2<TRetval>(Int32, Int32, Task<IServiceRemotingResponseMessageBody>)

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

CreateRequestMessageBodyV2(String, String, Int32, Object)

Creates the Remoting request message Body

GetReturnValue(Int32, Int32, Object)

This method is used by the generated proxy type and should be used directly. This method converts the Task with object return value to a Task without the return value for the void method invocation

InvokeAsyncV2(Int32, Int32, String, IServiceRemotingRequestMessageBody, CancellationToken)

Called by the generated proxy class to send the request to the remote object and get the response back.

InvokeV2(Int32, Int32, IServiceRemotingRequestMessageBody)

Called by the generated proxy class to send the requestMessage to the remote object.

Applies to