Forráskód Böngészése

2009-07-10 Atsushi Enomoto <[email protected]>

	* TcpChannelListener.cs, TcpDuplexSessionChannel.cs : do not pass
	  timeout to channel constructor. it does not make sense.


svn path=/trunk/mcs/; revision=137670
Atsushi Eno 16 éve
szülő
commit
2964b69e86

+ 5 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog

@@ -1,3 +1,8 @@
+2009-07-10  Atsushi Enomoto  <[email protected]>
+
+	* TcpChannelListener.cs, TcpDuplexSessionChannel.cs : do not pass
+	  timeout to channel constructor. it does not make sense.
+
 2009-07-10  Atsushi Enomoto  <[email protected]>
 
 	* PeerChannelFactory.cs, PeerChannelListener.cs : add MessageEncoder

+ 1 - 1
mcs/class/System.ServiceModel/System.ServiceModel.Channels/TcpChannelListener.cs

@@ -84,7 +84,7 @@ namespace System.ServiceModel.Channels
 				return null; // onclose
 
 			if (typeof (TChannel) == typeof (IDuplexSessionChannel))
-				return (TChannel) (object) new TcpDuplexSessionChannel (this, info, client, timeout);
+				return (TChannel) (object) new TcpDuplexSessionChannel (this, info, client);
 
 			// FIXME: To implement more.
 			throw new NotImplementedException ();

+ 1 - 3
mcs/class/System.ServiceModel/System.ServiceModel.Channels/TcpDuplexSessionChannel.cs

@@ -68,7 +68,6 @@ namespace System.ServiceModel.Channels
 		TcpClient client;
 		bool is_service_side;
 		EndpointAddress local_address;
-		TimeSpan timeout;
 		TcpBinaryFrameManager frame;
 		TcpDuplexSession session; // do not use this directly. Use Session instead.
 		
@@ -79,13 +78,12 @@ namespace System.ServiceModel.Channels
 			this.info = info;
 		}
 		
-		public TcpDuplexSessionChannel (ChannelListenerBase listener, TcpChannelInfo info, TcpClient client, TimeSpan timeout)
+		public TcpDuplexSessionChannel (ChannelListenerBase listener, TcpChannelInfo info, TcpClient client)
 			: base (listener)
 		{
 			is_service_side = true;
 			this.client = client;
 			this.info = info;
-			this.timeout = timeout;
 		}
 		
 		public MessageEncoder Encoder {