Share via


ServiceRpcDescriptor.ConstructLocalProxy<T>(T) Method

Definition

Gives the ServiceRpcDescriptor a chance to wrap a local target object so that interacting with it behaves similarly to if it were a remote target that was using RPC.

public:
generic <typename T>
 where T : class virtual T ConstructLocalProxy(T target);
public virtual T? ConstructLocalProxy<T> (T? target) where T : class;
abstract member ConstructLocalProxy : 'T -> 'T (requires 'T : null)
override this.ConstructLocalProxy : 'T -> 'T (requires 'T : null)
Public Overridable Function ConstructLocalProxy(Of T As Class) (target As T) As T

Type Parameters

T

The interface that defines the RPC contract for communicating with the target.

Parameters

target
T

The local target object. May be null, which will result in null being returned.

Returns

T

The proxy wrapper (or null if target is null); or possibly the original target object if this method is not overriden by a derived-type.

Applies to