+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
//
-// HttpStandaloneChannelListener.cs
+// HttpChannelListener.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
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)
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)));
}
//
-// HttpStandaloneReplyChannel.cs
+// HttpReplyChannel.cs
//
// Author:
// Atsushi Enomoto <atsushi@ximian.com>
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;
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;
}
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");
}
Message request;
- HttpStandaloneReplyChannel channel;
+ HttpReplyChannel channel;
HttpContextInfo context;
public override Message RequestMessage {
get { return request; }
}
- public HttpStandaloneReplyChannel Channel {
+ public HttpReplyChannel Channel {
get { return channel; }
}
+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.
{
// 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