ServiceRpcDescriptor.ConstructLocalProxy<T>(T) 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.
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
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.