2010-07-05 Atsushi Enomoto <atsushi@ximian.com>
authorAtsushi Eno <atsushieno@gmail.com>
Mon, 5 Jul 2010 17:39:40 +0000 (17:39 -0000)
committerAtsushi Eno <atsushieno@gmail.com>
Mon, 5 Jul 2010 17:39:40 +0000 (17:39 -0000)
* HttpRequestContext.cs, HttpChannelListener.cs, HttpReplyChannel.cs:
  rename unnecessary "Standalone" (removed).

* HttpTransportbindingElement.cs : remove "Standalone".

svn path=/trunk/mcs/; revision=159916

mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/ChangeLog
mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/HttpChannelListener.cs
mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/HttpReplyChannel.cs
mcs/class/System.ServiceModel/System.ServiceModel.Channels.Http/HttpRequestContext.cs
mcs/class/System.ServiceModel/System.ServiceModel.Channels/ChangeLog
mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpTransportBindingElement.cs

index 7b340df9aa66f865e3e4e513da434af1a0e117f3..662f9fa083683f0452f6e6aa013ca3ae0929c8f5 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * HttpRequestContext.cs, HttpChannelListener.cs, HttpReplyChannel.cs:
+         rename unnecessary "Standalone" (removed).
+
 2010-07-05  Atsushi Enomoto  <atsushi@ximian.com>
 
        * HttpStandaloneReplyChannel.cs
index f63b21f6d1afb30d83f9d0a9d72d8f097541ef62..4edaeaf54aca3e18ba9a5bd17b91dbc772962d6d 100644 (file)
@@ -1,5 +1,5 @@
 //
-// HttpStandaloneChannelListener.cs
+// HttpChannelListener.cs
 //
 // Author:
 //     Atsushi Enomoto <atsushi@ximian.com>
@@ -45,12 +45,12 @@ namespace System.ServiceModel.Channels.Http
                ChannelDispatcher ChannelDispatcher { get; set; }
        }
 
-       internal class HttpStandaloneChannelListener<TChannel> : InternalChannelListenerBase<TChannel>, IChannelDispatcherBoundListener
+       internal class HttpChannelListener<TChannel> : InternalChannelListenerBase<TChannel>, IChannelDispatcherBoundListener
                where TChannel : class, IChannel
        {
                HttpListenerManager listener_manager;
 
-               public HttpStandaloneChannelListener (HttpTransportBindingElement source, BindingContext context)
+               public HttpChannelListener (HttpTransportBindingElement source, BindingContext context)
                        : base (context)
                {
                        if (ServiceHostBase.CurrentServiceHostHack != null)
@@ -112,7 +112,7 @@ namespace System.ServiceModel.Channels.Http
                TChannel CreateChannelCore (TimeSpan timeout)
                {
                        if (typeof (TChannel) == typeof (IReplyChannel))
-                               return (TChannel) (object) new HttpStandaloneReplyChannel ((HttpStandaloneChannelListener<IReplyChannel>) (object) this);
+                               return (TChannel) (object) new HttpReplyChannel ((HttpChannelListener<IReplyChannel>) (object) this);
 
                        throw new NotSupportedException (String.Format ("Channel type {0} is not supported", typeof (TChannel)));
                }
index 0e0657812b96394575ac0a1df05c6f18918e46cc..661f960f4464eb09861a52014003aaf0caadd012 100644 (file)
@@ -1,5 +1,5 @@
 //
-// HttpStandaloneReplyChannel.cs
+// HttpReplyChannel.cs
 //
 // Author:
 //     Atsushi Enomoto <atsushi@ximian.com>
@@ -36,12 +36,12 @@ using System.Threading;
 
 namespace System.ServiceModel.Channels.Http
 {
-       internal class HttpStandaloneReplyChannel : InternalReplyChannelBase
+       internal class HttpReplyChannel : InternalReplyChannelBase
        {
-               HttpStandaloneChannelListener<IReplyChannel> source;
+               HttpChannelListener<IReplyChannel> source;
                RequestContext reqctx;
 
-               public HttpStandaloneReplyChannel (HttpStandaloneChannelListener<IReplyChannel> listener)
+               public HttpReplyChannel (HttpChannelListener<IReplyChannel> listener)
                        : base (listener)
                {
                        this.source = listener;
@@ -153,7 +153,7 @@ namespace System.ServiceModel.Channels.Http
                        msg.Properties.Add ("Via", LocalAddress.Uri);
                        msg.Properties.Add (HttpRequestMessageProperty.Name, CreateRequestProperty (ctxi));
 
-                       context = new HttpStandaloneRequestContext (this, ctxi, msg);
+                       context = new HttpRequestContext (this, ctxi, msg);
                        reqctx = context;
                        return true;
                }
index 986c29c185d9b54eaa79fd7d64bc1f01902b4066..938bb93965f8401b5f8417745df92547f83cbe30 100644 (file)
@@ -32,9 +32,9 @@ using System.Threading;
 
 namespace System.ServiceModel.Channels.Http
 {
-       internal class HttpStandaloneRequestContext : RequestContext
+       internal class HttpRequestContext : RequestContext
        {
-               public HttpStandaloneRequestContext (HttpStandaloneReplyChannel channel, HttpContextInfo context, Message request)
+               public HttpRequestContext (HttpReplyChannel channel, HttpContextInfo context, Message request)
                {
                        if (channel == null)
                                throw new ArgumentNullException ("channel");
@@ -48,14 +48,14 @@ namespace System.ServiceModel.Channels.Http
                }
 
                Message request;
-               HttpStandaloneReplyChannel channel;
+               HttpReplyChannel channel;
                HttpContextInfo context;
 
                public override Message RequestMessage {
                        get { return request; }
                }
 
-               public HttpStandaloneReplyChannel Channel {
+               public HttpReplyChannel Channel {
                        get { return channel; }
                }
                
index 79e649511985766c9a6aa561bade01a73f9a17a3..9f99a0c70bde5d1f33b54ed8232c7e927a9ad4ab 100755 (executable)
@@ -1,3 +1,7 @@
+2010-07-05  Atsushi Enomoto  <atsushi@ximian.com>
+
+       * HttpTransportbindingElement.cs : remove "Standalone".
+
 2010-07-05  Atsushi Enomoto  <atsushi@ximian.com>
 
        * SvcHttpHandler.cs : removed old code and #if blocks.
index 9aa653128d4471c93b04bed730af921a977b52cd..acd10c63099b6f524eaae0c6ec63aa27a8f52362 100644 (file)
@@ -179,11 +179,7 @@ namespace System.ServiceModel.Channels
                {
                        // remaining contexts are ignored ... e.g. such binding
                        // element that always causes an error is ignored.
-                       //if (ServiceHostingEnvironment.InAspNet)
-                       //      return new AspNetChannelListener<TChannel> (this, context);
-                       //else
-                               return new HttpStandaloneChannelListener<TChannel> (this, context);
-//                             return new HttpSimpleChannelListener<TChannel> (this, context);
+                       return new HttpChannelListener<TChannel> (this, context);
                }
 #endif