ForwardingProxy<T> ForwardingProxy(Of T) Class

Definition

This is a small piece of Remoting magic. It enables us to invoke methods on a remote object without knowing its actual type. The only restriction is that the names and shapes of the types and their members must be the same on each side of the boundary.

public class ForwardingProxy<T> : RealProxy
Public Class ForwardingProxy(Of T)
    Inherits RealProxy
Type Parameters
T
Inheritance
System.ObjectSystem.Object
System.Runtime.Remoting.Proxies.RealProxySystem.Runtime.Remoting.Proxies.RealProxy
ForwardingProxy<T>ForwardingProxy(Of T)

Constructors

ForwardingProxy(Object) ForwardingProxy(Object)

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public ForwardingProxy(object target)
Public Sub New(target As Object)
Parameters
target
System.Object System.Object

Methods

AttachServer(MarshalByRefObject) AttachServer(MarshalByRefObject)

Inherited from System.Runtime.Remoting.Proxies.RealProxy

CreateObjRef(Type) CreateObjRef(Type)

Inherited from System.Runtime.Remoting.Proxies.RealProxy

DetachServer() DetachServer()

Inherited from System.Runtime.Remoting.Proxies.RealProxy

Equals(Object) Equals(Object)

Inherited from System.Object

Equals(Object, Object) Equals(Object, Object)

Inherited from System.Object

GetCOMIUnknown(Boolean) GetCOMIUnknown(Boolean)

Inherited from System.Runtime.Remoting.Proxies.RealProxy

GetHashCode() GetHashCode()

Inherited from System.Object

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Inherited from System.Runtime.Remoting.Proxies.RealProxy

GetProxiedType() GetProxiedType()

Inherited from System.Runtime.Remoting.Proxies.RealProxy

GetStubData(RealProxy) GetStubData(RealProxy)

Inherited from System.Runtime.Remoting.Proxies.RealProxy

GetTransparentProxy() GetTransparentProxy()

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

public virtual T GetTransparentProxy()
Public Overridable Function GetTransparentProxy As T
Returns
T T

GetType() GetType()

Inherited from System.Object

GetUnwrappedServer() GetUnwrappedServer()

Inherited from System.Runtime.Remoting.Proxies.RealProxy

InitializeServerObject(IConstructionCallMessage) InitializeServerObject(IConstructionCallMessage)

Inherited from System.Runtime.Remoting.Proxies.RealProxy

Invoke(IMessage) Invoke(IMessage)

Intercepts method invocations on the object represented by the current instance and forwards them to the target to finish processing.

public override IMessage Invoke(IMessage msg)
Public Overrides Function Invoke(msg As IMessage) As IMessage
Parameters
msg
System.Runtime.Remoting.Messaging.IMessage System.Runtime.Remoting.Messaging.IMessage
Returns
System.Runtime.Remoting.Messaging.IMessage System.Runtime.Remoting.Messaging.IMessage
Overrides
System.Runtime.Remoting.Proxies.RealProxy.Invoke(System.Runtime.Remoting.Messaging.IMessage)System.Runtime.Remoting.Proxies.RealProxy.Invoke(System.Runtime.Remoting.Messaging.IMessage)

MemberwiseClone() MemberwiseClone()

Inherited from System.Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from System.Object

SetCOMIUnknown(IntPtr) SetCOMIUnknown(IntPtr)

Inherited from System.Runtime.Remoting.Proxies.RealProxy

SetStubData(RealProxy, Object) SetStubData(RealProxy, Object)

Inherited from System.Runtime.Remoting.Proxies.RealProxy

SupportsInterface(Guid) SupportsInterface(Guid)

Inherited from System.Runtime.Remoting.Proxies.RealProxy

ToString() ToString()

Inherited from System.Object