Selaa lähdekoodia

2002-07-30 Duncan Mak <[email protected]>

	* LeaseState.cs: Fixed namespace.

	* ITrackingHandler.cs: Added to CVS.

	* ServerFault.cs:
	* SoapFault.cs:
	* SoapMessage.cs: Added missing classes.

svn path=/trunk/mcs/; revision=6248
Duncan Mak 23 vuotta sitten
vanhempi
sitoutus
8deab983f8

+ 4 - 0
mcs/class/corlib/System.Runtime.Remoting.Lifetime/ChangeLog

@@ -1,3 +1,7 @@
+2002-07-30  Duncan Mak  <[email protected]>
+
+	* LeaseState.cs: Fixed namespace.
+
 2002-07-29  Duncan Mak  <[email protected]>
 
 	* ILease.cs: Add the method part of the interface and renamed the

+ 2 - 2
mcs/class/corlib/System.Runtime.Remoting.Lifetime/LeaseState.cs

@@ -10,7 +10,7 @@
 // (C) 2001 Ximian, Inc.  http://www.ximian.com
 
 
-namespace System.Runtime.Remoting {
+namespace System.Runtime.Remoting.Lifetime {
 
 
 	/// <summary>
@@ -38,4 +38,4 @@ namespace System.Runtime.Remoting {
 		Expired = 4,
 	} // LeaseState
 
-} // System.Runtime.Remoting
+} // System.Runtime.Remoting.Lifetime

+ 3 - 0
mcs/class/corlib/System.Runtime.Remoting.Services/ChangeLog

@@ -0,0 +1,3 @@
+2002-07-30  Duncan Mak  <[email protected]>
+
+	* ITrackingHandler.cs: Added to CVS.

+ 19 - 0
mcs/class/corlib/System.Runtime.Remoting.Services/ITrackingHandler.cs

@@ -0,0 +1,19 @@
+//
+// System.Runtime.Remoting.Services.ITrackingHandler.cs
+//
+// Author: Duncan Mak  ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System.Runtime.Remoting;
+
+namespace System.Runtime.Remoting.Services {
+	public interface ITrackingHandler
+	{
+		void DisconnectedObject (object obj);
+		void MarshaledObject (object obj, ObjRef or);
+		void UnmarshaledObject (object obj, ObjRef or);
+	}
+}
+

+ 6 - 0
mcs/class/corlib/System.Runtime.Serialization.Formatters/ChangeLog

@@ -1,3 +1,9 @@
+2002-07-30  Duncan Mak  <[email protected]>
+
+	* ServerFault.cs: 
+	* SoapFault.cs: 
+	* SoapMessage.cs: Added missing classes.
+
 2002-01-21  David Dawkins <[email protected]>
 
 	* IFieldInfo.cs : New file

+ 45 - 0
mcs/class/corlib/System.Runtime.Serialization.Formatters/ServerFault.cs

@@ -0,0 +1,45 @@
+//
+// System.Runtime.Serialization.Formatters.ServerFault.cs
+//
+// Author: Duncan Mak  ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System;
+using System.Runtime.Serialization;
+
+namespace System.Runtime.Serialization.Formatters {
+
+	[Serializable]
+	public sealed class ServerFault
+	{
+		string ex_type;
+		string ex_message;
+		string stacktrace;
+		ServerFault serverFault;
+
+		public ServerFault (string exceptionType, string message,
+				  string stackTrace)
+		{
+			ex_type = exceptionType;
+			ex_message = message;
+			stacktrace = stackTrace;
+		}
+
+		public string ExceptionType {
+			get { return ex_type; }
+			set { ex_type = value; }
+		}
+
+		public string ExceptionMessage {
+			get { return ex_message; }
+			set { ex_message = value; }
+		}
+
+		public string StackTrace {
+			get { return stacktrace; }
+			set { stacktrace = value; }
+		}
+	}
+}

+ 64 - 0
mcs/class/corlib/System.Runtime.Serialization.Formatters/SoapFault.cs

@@ -0,0 +1,64 @@
+//
+// System.Runtime.Serialization.Formatters.SoapFault.cs
+//
+// Author: Duncan Mak  ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System;
+using System.Runtime.Serialization;
+
+namespace System.Runtime.Serialization.Formatters {
+
+	[Serializable]
+	public sealed class SoapFault : ISerializable
+	{
+		string code;
+		string actor;
+		string faultString;
+		ServerFault serverFault;
+
+		[MonoTODO]
+		public SoapFault ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		public SoapFault (string faultCode, string faultString,
+				  string faultActor, ServerFault serverFault)
+		{
+			this.code = faultCode;
+			this.actor = faultActor;
+			this.faultString = faultString;
+			this.serverFault = serverFault;
+		}
+		
+		[MonoTODO]
+		public object Detail {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+
+		public string FaultActor {
+			get { return actor; }
+			set { actor = value; }
+		}
+
+		public string FaultCode {
+			get { return code; }
+			set { code = value; }
+		}
+
+		public string FaultString {
+			get { return faultString; }
+			set { faultString = value; }
+		}
+		
+		public void GetObjectData (SerializationInfo info,
+					   StreamingContext context)
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 59 - 0
mcs/class/corlib/System.Runtime.Serialization.Formatters/SoapMessage.cs

@@ -0,0 +1,59 @@
+//
+// System.Runtime.Serialization.Formatters.SoapMessage.cs
+//
+// Author: Duncan Mak  ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System;
+using System.Runtime.Remoting.Messaging;
+using System.Runtime.Serialization.Formatters;
+
+namespace System.Runtime.Serialization.Formatters {
+
+	[Serializable]
+	public class SoapMessage : ISoapMessage
+	{
+		[MonoTODO]
+		public SoapMessage ()
+		{
+			throw new NotImplementedException ();
+		}
+
+		public Header[] Headers {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public string MethodName {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public string [] ParamNames {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public Type [] ParamTypes {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public object [] ParamValues {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+
+		[MonoTODO]
+		public string XmlNameSpace {
+			get { throw new NotImplementedException (); }
+			set { throw new NotImplementedException (); }
+		}
+	}
+}

+ 4 - 0
mcs/class/corlib/unix.args

@@ -481,6 +481,7 @@ System.Runtime.Remoting.Metadata/SoapTypeAttribute.cs
 System.Runtime.Remoting.Metadata/XmlFieldOrderOption.cs
 System.Runtime.Remoting.Proxies/RealProxy.cs
 System.Runtime.Remoting.Proxies/ProxyAttribute.cs
+System.Runtime.Remoting.Services/ITrackingHandler.cs
 System.Runtime.Serialization/IDeserializationCallback.cs
 System.Runtime.Serialization/IFormatter.cs
 System.Runtime.Serialization/IFormatterConverter.cs
@@ -513,6 +514,9 @@ System.Runtime.Serialization.Formatters/InternalParseTypeE.cs
 System.Runtime.Serialization.Formatters/InternalPrimitiveTypeE.cs
 System.Runtime.Serialization.Formatters/InternalSerializerTypeE.cs
 System.Runtime.Serialization.Formatters/ISoapMessage.cs
+System.Runtime.Serialization.Formatters/ServerFault.cs
+System.Runtime.Serialization.Formatters/SoapFault.cs
+System.Runtime.Serialization.Formatters/SoapMessage.cs
 System.Runtime.Serialization.Formatters.Binary/BinaryArrayTypeEnum.cs
 System.Security/CodeAccessPermission.cs
 System.Security/IEvidenceFactory.cs