-Subproject commit f43e7328de0744ccc77251aebdde9e214c258255
+Subproject commit 357bc3c958168c7335171a6b2c971149348fdc42
{
internal static IMessage DeserializeMessage(MemoryStream mem, IMethodCallMessage msg)
{
+#if FEATURE_REMOTING
BinaryFormatter serializer = new BinaryFormatter();
serializer.SurrogateSelector = null;
return (IMessage) serializer.Deserialize(mem, null);
else
return (IMessage) serializer.DeserializeMethodResponse(mem, null, msg);
+#else
+ throw new NotSupportedException ();
+#endif
}
internal static MemoryStream SerializeMessage(IMessage msg)
Init();
ResolveMethod();
}
-
+#if FEATURE_REMOTING
internal MethodCall (Object handlerObject, BinaryMethodCallMessage smuggledMsg)
{
if (handlerObject != null)
if (smuggledMsg.HasProperties)
smuggledMsg.PopulateMessageProperties(Properties);
}
-
+#endif
internal MethodCall ()
{
}
if (retmsg.PropertiesCount > 0)
CADMessageBase.UnmarshalProperties (Properties, retmsg.PropertiesCount, args);
}
-
+#if FEATURE_REMOTING
internal MethodResponse(IMethodCallMessage msg,
Object handlerObject,
BinaryMethodReturnMessage smuggledMrm)
if (smuggledMrm.HasProperties)
smuggledMrm.PopulateMessageProperties(Properties);
}
-
+#endif
internal MethodResponse (SerializationInfo info, StreamingContext context)
{
foreach (SerializationEntry entry in info)