ClientEndPoint ForgetRemoteInstance Method NFX Class Library

[This is preliminary documentation and is subject to change.]

Sets RemoteInstance to null. This method is needed when the same instance of client endpoint is used to make subsequent statefull calls to different server instances. Call this method before calling [Constructor]-decorated remote method or making the first call to InstanceLifetime.AutoconstructedStateful servers.

Namespace: NFX.Glue
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public void ForgetRemoteInstance()
Remarks

The remote instance ID is retained locally even after a call to [Destructor]-decorated remote method. This is needed because a call to destructor may be asynchronous and it may be necessary to know the ID of the instance (that has already died on remote host) after call returns. Call ForgetRemoteInstance() to deterministically nullify the local cached ID.
See Also