using System.Runtime.Remoting.Messaging;
using System.Runtime.Remoting.Proxies;
+#if NET_2_0
+using System.Runtime.ConstrainedExecution;
+#endif
+
namespace System.Runtime.Remoting {
[Serializable]
uri = RemotingServices.GetObjectUri(mbr);
typeInfo = new TypeInfo(type);
- if (!type.IsAssignableFrom (mbr.GetType()))
+ if (!type.IsInstanceOfType (mbr))
throw new RemotingException ("The server object type cannot be cast to the requested type " + type.FullName + ".");
UpdateChannelInfo();
}
public virtual IChannelInfo ChannelInfo {
-
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
get {
return channel_info;
}
return identity.IsFromThisAppDomain;
}
+#if NET_2_0
+ [ReliabilityContractAttribute (Consistency.WillNotCorruptState, Cer.Success)]
+#endif
public bool IsFromThisProcess ()
{
foreach (object data in channel_info.ChannelData)