Compartir a través de


ServiceRpcDescriptor.RpcConnection.AddLocalRpcTarget(Object) Method

Definition

Adds a target object to receive RPC calls.

public:
 abstract void AddLocalRpcTarget(System::Object ^ rpcTarget);
public abstract void AddLocalRpcTarget (object rpcTarget);
abstract member AddLocalRpcTarget : obj -> unit
Public MustOverride Sub AddLocalRpcTarget (rpcTarget As Object)

Parameters

rpcTarget
Object

A target for any RPC calls received over the connection. If this object implements IDisposable, Dispose() will be invoked when the client closes their connection.

Exceptions

May be thrown when StartListening() has already been called.

Applies to