Author: atsushi
Date: 2006-12-04 11:26:02 -0500 (Mon, 04 Dec 2006)
New Revision: 68964

Modified:
   trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog
   
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelListener.cs
   
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/TransactionFlowBindingElement.cs
Log:
2006-12-04  Atsushi Enomoto  <[EMAIL PROTECTED]>

        * TransactionFlowBindingElement.cs : OnOpen()/OnClose() should not
          check state by themselves (btw it's not really working).
        * HttpChannelListener.cs : If the url does not end with '/' add it
          so that it could be fed to HttpListener.



Modified: 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog
===================================================================
--- 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog    
    2006-12-04 16:23:39 UTC (rev 68963)
+++ 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog    
    2006-12-04 16:26:02 UTC (rev 68964)
@@ -1,5 +1,12 @@
 2006-12-04  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
+       * TransactionFlowBindingElement.cs : OnOpen()/OnClose() should not
+         check state by themselves (btw it's not really working).
+       * HttpChannelListener.cs : If the url does not end with '/' add it
+         so that it could be fed to HttpListener.
+
+2006-12-04  Atsushi Enomoto  <[EMAIL PROTECTED]>
+
        * HttpChannelFactory.cs : check scheme on CreateChannel.
        * MessageHeader.cs : finish IsMessageVersionSupported().
 

Modified: 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelListener.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelListener.cs
   2006-12-04 16:23:39 UTC (rev 68963)
+++ 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelListener.cs
   2006-12-04 16:26:02 UTC (rev 68964)
@@ -127,7 +127,9 @@
                        if (listener != null)
                                throw new InvalidOperationException ("This 
listener is already waiting for connection.");
                        listener = new HttpListener ();
-                       listener.Prefixes.Add (Uri.AbsoluteUri);
+                       string uri = Uri.AbsoluteUri;
+                       uri = uri.EndsWith ("/") ? uri : uri + "/";
+                       listener.Prefixes.Add (uri);
                        listener.Start ();
                }
 

Modified: 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/TransactionFlowBindingElement.cs
===================================================================
--- 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/TransactionFlowBindingElement.cs
 2006-12-04 16:23:39 UTC (rev 68963)
+++ 
trunk/olive/class/System.ServiceModel/System.ServiceModel.Channels/TransactionFlowBindingElement.cs
 2006-12-04 16:26:02 UTC (rev 68964)
@@ -136,13 +136,11 @@
                protected override TChannel OnCreateChannel (
                        EndpointAddress remoteAddress, Uri via)
                {
-                       ThrowIfDisposedOrImmutable ();
                        return inner_factory.CreateChannel (remoteAddress, via);
                }
 
                protected override void OnClose (TimeSpan timeout)
                {
-                       ThrowIfDisposedOrNotOpen ();
                        inner_factory.Close (timeout);
                        txscope.Complete ();
                }
@@ -171,7 +169,6 @@
 
                protected override void OnOpen (TimeSpan timeout)
                {
-                       ThrowIfDisposedOrImmutable ();
                        CommittableTransaction tx = new CommittableTransaction 
();
                        txscope = new TransactionScope (tx);
                        inner_listener.Open (timeout);
@@ -189,7 +186,6 @@
 
                protected override void OnClose (TimeSpan timeout)
                {
-                       ThrowIfDisposedOrNotOpen ();
                        inner_listener.Close (timeout);
                        txscope.Complete ();
                }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to