ServiceProxy Class

Definition

Provides the base implementation for the proxy to the remoted IService interfaces.

public abstract class ServiceProxy : Microsoft.ServiceFabric.Services.Remoting.Builder.ProxyBase, Microsoft.ServiceFabric.Services.Remoting.Client.IServiceProxy
type ServiceProxy = class
    inherit ProxyBase
    interface IServiceProxy
Public MustInherit Class ServiceProxy
Inherits ProxyBase
Implements IServiceProxy
Inheritance
ServiceProxy
Implements

Constructors

ServiceProxy()

Properties

ServiceInterfaceType

The interface type that is being remoted.

ServicePartitionClient

The V1 Service partition client used to send requests to the service.

ServicePartitionClient2

The V2 Service partition client used to send requests to the service.

Methods

ContinueWith(Task<Object>)

Called by the generated proxy class to continue after getting the response body that does not have value.

(Inherited from ProxyBase)
ContinueWithResult<TRetval>(Int32, Int32, Task<Object>)

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

(Inherited from ProxyBase)
ContinueWithResultV2<TRetval>(Task<IServiceRemotingResponseMessageBody>)

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

(Inherited from ProxyBase)
Create<TServiceInterface>(Uri, ServicePartitionKey, TargetReplicaSelector, String)

Creates a proxy to communicate to the specified service using the remoted interface TServiceInterface that the service implements. Interface that is being remotedUri of the Service.The Partition key that determines which service partition is responsible for handling requests from this service proxyDetermines which replica or instance of the service partition the client should connect to.This parameter is Optional if the service has a single communication listener. The endpoints from the service are of the form {"Endpoints":{"Listener1":"Endpoint1","Listener2":"Endpoint2" ...}}. When the service exposes multiple endpoints, this parameter identifies which of those endpoints to use for the remoting communication.

The proxy that implement the interface that is being remoted. The returned object also implement IServiceProxy interface.
CreateRequestMessageBodyV2(String, String, Int32)

Creates the Remoting request message Body

(Inherited from ProxyBase)
GetReturnValue(Int32, Int32, Object)

Implemented by the derived class to type cast the response body and extract the value from it.

(Inherited from ProxyBase)
Invoke(Int32, Int32, Object)

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

(Inherited from ProxyBase)
InvokeAsync(Int32, Int32, Object, CancellationToken)

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

(Inherited from ProxyBase)
InvokeAsyncV2(Int32, Int32, IServiceRemotingRequestMessageBody, CancellationToken)

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

(Inherited from ProxyBase)
InvokeV2(Int32, Int32, IServiceRemotingRequestMessageBody)

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

(Inherited from ProxyBase)

Applies to