namespace System.Runtime.Remoting.Messaging {
[Serializable] [CLSCompliant (false)]
+ [System.Runtime.InteropServices.ComVisible (true)]
public class MethodResponse : IMethodReturnMessage, ISerializable, IInternalMessage, ISerializationRootObject
{
string _methodName;
protected IDictionary ExternalProperties;
protected IDictionary InternalProperties;
- public MethodResponse (Header[] headers, IMethodCallMessage mcm)
+ public MethodResponse (Header[] h1, IMethodCallMessage mcm)
{
if (mcm != null)
{
_args = mcm.Args;
}
- if (headers != null)
+ if (h1 != null)
{
- foreach (Header header in headers)
+ foreach (Header header in h1)
InitMethodProperty (header.Name, header.Value);
}
}
}
}
+ string IInternalMessage.Uri {
+ get { return Uri; }
+ set { Uri = value; }
+ }
+
public object GetArg (int argNum)
{
if (null == _args)
}
[MonoTODO]
- public void RootSetObjectData (SerializationInfo info, StreamingContext context)
+ public void RootSetObjectData (SerializationInfo info, StreamingContext ctx)
{
throw new NotImplementedException ();
}
set { _targetIdentity = value; }
}
- public override string ToString ()
- {
- string s = _typeName.Split(',')[0] + "." + _methodName + " (";
- if (_exception != null)
- {
- s += "Exception\n)" + _exception;
- }
- else
- {
- if (_args != null)
- {
- for (int n=0; n<_args.Length; n++)
- {
- if (n>0) s+= ", ";
- if (_args[n] != null) s += _args[n].GetType().Name + " ";
- s += GetOutArgName (n);
- if (_args[n] != null) s += " = {" + _args[n] + "}";
- else s+=" = {null}";
- }
- }
- s += ")";
- }
- return s;
- }
-
}
}