ForwardingProxy<T> ForwardingProxy(Of T) Class

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.

Syntax

Declaration

public class ForwardingProxy<T> : RealProxyPublic Class ForwardingProxy(Of T)
    Inherits RealProxy

Type Parameters

T

Inheritance Hierarchy

  • System.Object
    System.Object
  • System.Runtime.Remoting.Proxies.RealProxy
    System.Runtime.Remoting.Proxies.RealProxy
  • ForwardingProxy<T>
    ForwardingProxy(Of T)

Inherited Members

InitializeServerObject(IConstructionCallMessage),
InitializeServerObject(IConstructionCallMessage),
GetUnwrappedServer(),
GetUnwrappedServer(),
DetachServer(),
DetachServer(),
AttachServer(MarshalByRefObject),
AttachServer(MarshalByRefObject),
SetStubData(RealProxy, Object),
SetStubData(RealProxy, Object),
GetStubData(RealProxy),
GetStubData(RealProxy),
GetProxiedType(),
GetProxiedType(),
CreateObjRef(Type),
CreateObjRef(Type),
GetObjectData(SerializationInfo, StreamingContext),
GetObjectData(SerializationInfo, StreamingContext),
GetCOMIUnknown(Boolean),
GetCOMIUnknown(Boolean),
SetCOMIUnknown(IntPtr),
SetCOMIUnknown(IntPtr),
SupportsInterface(Guid),
SupportsInterface(Guid),
ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

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.

Methods summary

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.

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

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

  • 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
  • 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

Details

Assembly

Microsoft.EntityFrameworkCore.Design.dll