SvcHttpHandler maintains a mapping of HttpContext to ManualResetEvent. Entries are
removed from the cache in EndHttpRequest. The code makes sure the context exists in
the cache before attempting to access it.
* HttpStandaloneReplyChannel.cs, HttpChannelListenerEntry.cs,
HttpContextInfo.cs, HttpListenerManager.cs,
HttpStandaloneRequestContext.cs, HttpListenerManagerTable.cs:
Fixed wsdl support in the new codebase, so enabled it again, and
made significant changes for ASP.NET integration. Now ASP.NET
implementation switched to the new one.
* SvcHttpHandler.cs : add required code for new ASP.NET HTTP stack.
Support for new and old stack (both) are temporarily enabled.
* HttpTransportBindingElement.cs : switch to new ASP.NET stack.
svn path=/trunk/mcs/; revision=159907
* HttpStandaloneReplyChannel.cs, HttpStandaloneRequestContext.cs:
add more code that the asp.net stuff will become like.
* SvcHttpHandlerFactory.cs : remove unused code.
* SvcHttpHandler.cs : ditto. Add some code for what new asp.net
support will look like.
svn path=/trunk/mcs/; revision=159818
* SvcHttpHandler.cs : a wait handle could be used for more than one
requests and hence it sometimes blocked one reply channel. Now
it creates a wait handle for each ASP.NET request so that such
multiple use should not occur. This should fix blocking on
concurrent requests (it indeed fixes as long as I can see).
* HTTP_listener_notes.txt: some notes updated.
svn path=/trunk/mcs/; revision=150850
* SvcHttpHandler.cs : move back previous listener selector code in
ProcessRequest(). Unlike HttpListener, ASP.NET does not refine
and differentiate requests to deeper paths (such as /jsdebug), so
we need such refinement here.
svn path=/trunk/mcs/; revision=144652
* SvcHttpHandler.cs, HttpReplyChannel.cs, AspNetReplyChannel.cs,
HttpChannelListener.cs, HttpListenerManager.cs :
Similar refactoring on ASP.NET side to the previous one.
Added ASP.NET implementation of HttpListenerManager and use some
part of it in SvcHttpHandler (ASP.NET stack does not fully make use
of the manager yet).
Rewrote AspNetReplyChannel to become almost the same as
HttpSimpleReplyChannel, to hopefully unify them later.
Now it dispatches requests to *.svc for wsdl, help and SOAP as long
as ServiceThrottle has MaxConcurrentSessions=1. Also REST calls
are still broken.
svn path=/trunk/mcs/; revision=144605
* SvcHttpHandler.cs, AspNetReplyChannel.cs, HttpChannelListener.cs:
significant rewrite to cooperate wcf handler and asp.net handler
to not mix multiple WCF listener within the asp.net handler.
So far it mostly works when 1) there are no ChannelDispatchers
that have an identical listen Uri and 2) MaxConcurrentSessions is
1 (must be explicitly set).
svn path=/trunk/mcs/; revision=144008
* SvcHttpHandler.cs : use file path given by the factory to
construct BaseAddresses. Requests to "test.svc/jsdebug" should
not be handled as request to "jsdebug" file, it's rather an
"argument" to "test.svc".
svn path=/trunk/mcs/; revision=143545
* SvcHttpHandler.cs, HttpChannelListener.cs : some significant
rewrite to handle shutdown situation better. The listeners should
not close channels that it opened. Instead, just stop accepting
further requests. Removed blocking mutex on WaitForRequest().
Now xsp shuts down as expected.
svn path=/trunk/mcs/; revision=143498
* System.ServiceModel.dll.sources: add VirtualPathExtension.cs.
* VirtualPathExtension.cs : new file.
* HttpTransportBindingElement.cs, SvcHttpHandlerFactory.cs :
revert the change, to use internal asp.net state again.
* SvcHttpHandler.cs : add VirtualPathExtension.
* ConfigUtil.cs : revert the change, to use ServiceHostingEnvironment
internal member again.
* ServiceHostingEnvironment.cs : revert the change, to use
internal asp.net state again.
svn path=/trunk/mcs/; revision=143277
* SvcHttpHandlerFactory.cs, HttpTransportBindingElement.cs :
use AspNetCompatibilityEnabled.
* SvcHttpHandler.cs : disable ApplyConfiguration(). It should be done
at ServiceHostBase.
* AspNetReplyChannel.cs : remove extra field.
* ServiceHostingEnvironment.cs : use AspNetCompatibilityEnabled as
ASP.NET switch.
svn path=/trunk/mcs/; revision=142953
* AspNetReplyChannel.cs, HttpReplyChannel.cs : add some comments.
* SvcHttpHandlerFactory.cs, SvcHttpHandler.cs, HttpChannelListener.cs:
Make sure that AspNetChannelListener is bound to correct
SvcHttpHandler, regardless of specific request URI. It is required
for both WSDL requests and RESTful binding requests.
svn path=/trunk/mcs/; revision=142880
* ServiceHostBase.cs : URI trailing '/' can be added only when the
relative URI is non-empty. Do not make http://host/foo.svc as
http://host/foo.svc/ , it's not a directory.
* SvcHttpHandler.cs : set Uri property based on baseAddresses and
path, to pick those endpoints that are added at custom factories.
svn path=/trunk/mcs/; revision=141307
* SvcHttpHandlerFactory.cs : some GetHandler changes.
* SvcHttpHandler.cs : significant changes on receiver structure. Now
ProcessRequest() stores pending requests (this might be extraneous,
but maybe useful when it implements async handler). Also removed
reply_channel field as it may become to handle multiple requests.
* HttpChannelListener.cs : bind to corresponding SvcHttpHandler.
* AspNetReplyChannel.cs : make it receive requests like
HttpReplyChannel (for HttpListener) to make them consistent.
svn path=/trunk/mcs/; revision=141224
* SvcHttpHandler.cs : use baseAddresses in ServiceHost and make URIs
relative or absolute. new Uri ("/foobar") doesn't work on non-unix
environment.
svn path=/trunk/mcs/; revision=141206