using System.Runtime.Remoting.Contexts;
using System.Runtime.Remoting.Channels;
+using System.Runtime.InteropServices;
+
namespace System.Runtime.Remoting.Proxies {
[AttributeUsage (AttributeTargets.Class)]
+ [ComVisible (true)]
public class ProxyAttribute : Attribute, IContextAttribute
{
public ProxyAttribute ()
public virtual MarshalByRefObject CreateInstance (Type serverType)
{
+#if MOONLIGHT
+ throw new NotImplementedException ();
+#else
RemotingProxy proxy = new RemotingProxy (serverType, ChannelServices.CrossContextUrl, null);
return (MarshalByRefObject) proxy.GetTransparentProxy();
+#endif
}
- public virtual RealProxy CreateProxy (ObjRef objref, Type serverType, object serverObject, Context serverContext)
+ public virtual RealProxy CreateProxy (ObjRef objRef, Type serverType, object serverObject, Context serverContext)
{
- return RemotingServices.GetRealProxy (RemotingServices.GetProxyForRemoteObject (objref, serverType));
+ return RemotingServices.GetRealProxy (RemotingServices.GetProxyForRemoteObject (objRef, serverType));
}
+ [ComVisible (true)]
public void GetPropertiesForNewContext (IConstructionCallMessage msg)
{
// Nothing to add
}
+ [ComVisible (true)]
public bool IsContextOK (Context ctx, IConstructionCallMessage msg)
{
return true;