ServiceRpcDescriptor.RpcConnection.AddLocalRpcTarget(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.