Sfoglia il codice sorgente

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

	* BinaryServerFormatterSink.cs:
	* SoapServerFormatterSink.cs: Added.

svn path=/trunk/mcs/; revision=6293
Duncan Mak 23 anni fa
parent
commit
ba240dad7a

+ 0 - 17
mcs/class/corlib/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.Protocol.cs

@@ -1,17 +0,0 @@
-//
-// System.Runtime.Remoting.Channels.BinaryServerFormatterSink.Protocol.cs
-//
-// Author: Duncan Mak ([email protected])
-//
-// 2002 (C) Copyright, Ximian, Inc.
-//
-
-namespace System.Runtime.Remoting.Channels {
-
-	[Serializable]
-	public enum BinaryServerFormatterSink.Protocol
-	{
-		Http = 0,
-		Other = 1,
-	}
-}

+ 65 - 0
mcs/class/corlib/System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs

@@ -0,0 +1,65 @@
+//
+// System.Runtime.Remoting.Channels.BinaryServerFormatterSink.cs
+//
+// Author: Duncan Mak ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+using System.Collections;
+
+namespace System.Runtime.Remoting.Channels {
+
+	public class BinaryServerFormatterSink : IServerChannelSink, IChannelSinkBase
+	{
+		IServerChannelSink next_sink;
+		
+		[MonoTODO]
+		public BinaryServerFormatterSink (BinaryServerFormatterSink.Protocol protocol,
+						  IServerChannelSink nextSink,
+						  IChannelReceiver receiver)
+		{
+			this.next_sink = nextSink;
+		}
+
+		public IServerChannelSink NextChannelSink {
+			get {
+				return next_sink;
+			}
+		}
+
+		[MonoTODO]
+		public IDictionary Properties {
+			get {
+				throw new NonImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public void AsyncProcessResponse (IServerResponseChannelSinkStack sinkStack, object state,
+					  ITransportHeaders headers, Stream stream)
+		{
+			throw new NonImplementedException ();
+		}
+
+		[MonoTODO]
+		public Stream GetReponseStream (IMessage msg, ITransportHeaders headers)
+		{
+			throw new NonImplementedException ();
+		}
+		
+		[MonoTODO]
+		void ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, Stream requestStream,
+				     out ITransportHeaders responseHeaders, out Stream responseStream)
+		{
+			throw new NonImplementedException ();
+		}
+		
+		[Serializable]
+		public enum Protocol
+		{
+			Http = 0,
+			Other = 1,
+		}
+	}
+}

+ 2 - 2
mcs/class/corlib/System.Runtime.Remoting.Channels/ChangeLog

@@ -1,7 +1,7 @@
 2002-07-31  Duncan Mak  <[email protected]>
 
-	* BinaryServerFormatterSink.Protocol.cs:
-	* SoapServerFormatterSink.Protocol.cs: Added.
+	* BinaryServerFormatterSink.cs:
+	* SoapServerFormatterSink.cs: Added.
 
 	* IChannelReceiverHook.cs: 
 	* IClientFormatterSink.cs: Various compilation fixes.

+ 0 - 17
mcs/class/corlib/System.Runtime.Remoting.Channels/SoapServerFormatterSink.Protocol.cs

@@ -1,17 +0,0 @@
-//
-// System.Runtime.Remoting.Channels.BinaryServerFormatterSink.Protocol.cs
-//
-// Author: Duncan Mak ([email protected])
-//
-// 2002 (C) Copyright, Ximian, Inc.
-//
-
-namespace System.Runtime.Remoting.Channels {
-
-	[Serializable]
-	public enum SoapServerFormatterSink.Protocol
-	{
-		Http = 0,
-		Other = 1,
-	}
-}

+ 63 - 0
mcs/class/corlib/System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs

@@ -0,0 +1,63 @@
+//
+// System.Runtime.Remoting.Channels.BinaryServerFormatterSink.cs
+//
+// Author: Duncan Mak ([email protected])
+//
+// 2002 (C) Copyright, Ximian, Inc.
+//
+
+namespace System.Runtime.Remoting.Channels {
+
+	public class SoapServerFormatterSink : IServerChannelSink, IChannelSinkBase
+	{
+		IServerChannelSink next_sink;
+		
+		[MonoTODO]
+		public SoapServerFormatterSink (SoapServerFormatterSink.Protocol protocol,
+						IServerChannelSink nextSink,
+						IChannelReceiver receiver)
+		{
+			this.next_sink = nextSink;
+		}
+
+		public IServerChannelSink NextChannelSink {
+			get {
+				return next_sink;
+			}
+		}
+
+		[MonoTODO]
+		public IDictionary Properties {
+			get {
+				throw new NonImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public void AsyncProcessResponse (IServerResponseChannelSinkStack sinkStack, object state,
+					  ITransportHeaders headers, Stream stream)
+		{
+			throw new NonImplementedException ();
+		}
+
+		[MonoTODO]
+		public Stream GetReponseStream (IMessage msg, ITransportHeaders headers)
+		{
+			throw new NonImplementedException ();
+		}
+		
+		[MonoTODO]
+		void ProcessMessage (IMessage msg, ITransportHeaders requestHeaders, Stream requestStream,
+				     out ITransportHeaders responseHeaders, out Stream responseStream)
+		{
+			throw new NonImplementedException ();
+		}
+
+		[Serializable]
+		public enum Protocol
+		{
+			Http = 0,
+			Other = 1,
+		}
+	}
+}

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

@@ -457,6 +457,7 @@ System.Runtime.Remoting.Activation/IActivator.cs
 System.Runtime.Remoting.Activation/IConstructionCallMessage.cs
 System.Runtime.Remoting.Activation/IConstructionReturnMessage.cs
 System.Runtime.Remoting.Activation/UrlAttribute.cs
+System.Runtime.Remoting.Channels/BinaryServerFormatterSink.cs
 System.Runtime.Remoting.Channels/IChannel.cs
 System.Runtime.Remoting.Channels/IChannelDataStore.cs
 System.Runtime.Remoting.Channels/IChannelReceiver.cs
@@ -475,6 +476,7 @@ System.Runtime.Remoting.Channels/IServerChannelSinkStack.cs
 System.Runtime.Remoting.Channels/IServerFormatterSinkProvider.cs
 System.Runtime.Remoting.Channels/ITransportHeaders.cs
 System.Runtime.Remoting.Channels/ServerProcessing.cs
+System.Runtime.Remoting.Channels/SoapServerFormatterSink.cs
 System.Runtime.Remoting.Contexts/Context.cs
 System.Runtime.Remoting.Contexts/ContextAttribute.cs
 System.Runtime.Remoting.Contexts/ContextProperty.cs