* CommunicationObject.cs : when process state changes, lock the
object to make sure the state transition is valid.
Change OnClosed/OnClosing to do the way OnOpened/OnOpening does.
* ChannelDispatcher.cs : another error audit.
svn path=/trunk/mcs/; revision=149793
* TcpBinaryFrameManager.cs : treat EOF as interrupted stream too (it
does not happen when communicating with .NET client but happens with
mono). Seealso FIXME comment.
* TcpDuplexSessionChannel.cs : do not try to close session when it
failed to read sized message. The connection is already dead.
Fixed bug #567949.
svn path=/trunk/mcs/; revision=149166
* TcpDuplexSessionChannel.cs :
Write EndRecord only when the connection is available.
Remove hack - do let ChannelDispatcher close the channel.
* TcpBinaryFrameManager.cs :
The socket may be disconnected when trying to read a sized message,
so check some socket exceptions.
In case the client silently shuts down without EndRecord and
reconnects to the server with preamble while expecting a sized
message (which is so lame, but that's what .NET often does), refresh
preamble and continue.
This fixes some cases of bug #567949 but not all.
svn path=/trunk/mcs/; revision=149163
* BinaryMessageEncoder.cs : enable workaround buffering only when
the argument stream does *not* support seek. This fixes some
net.tcp connection problem.
* BinaryMessageEncodingBindingElementTest.cs : added test for
connection-based tests for both TCP and HTTP (they give difference:
see BinaryMessageEncoder.cs change too).
svn path=/trunk/mcs/; revision=149103
* TcpBinaryFrameManager.cs : If preamble byte is not available from
the client stream, detect it to close the reply or input channel.
* TcpRequestChannel.cs : send preamble at each request time.
It differentiates communication behavior on such cases that involve
single open and multiple requests.
* TcpReplyChannel.cs : close the channel only when the channel is
oeprated to close i.e. do not close the socket every time.
Process preambles on each request (the same as request channel).
svn path=/trunk/mcs/; revision=148901
* TcpBinaryFrameManager.cs : unsized envelope record may have more
than one data block, so consume them accordingly. This should fix
large buffer consumption.
svn path=/trunk/mcs/; revision=148900
* MessageFault.cs : support EnvelopeVersion.None as well, as almost
the same as SOAP12.
* MessageFaultTest.cs : add CreateFault test with MessageVersion.None.
svn path=/trunk/mcs/; revision=148797
* BinaryMessageEncoder.cs : added workaround for strange stream
consumption error raised by HttpTransport + Binary encoder example.
* BinaryMessageEncodingBindingElement.cs:
only SOAP 1.2 is allowed for this encoder.
svn path=/trunk/mcs/; revision=148552
* MessageHeaders.cs : null can be set as a WS-Addressing header item.
* MessageHeadersTest.cs : make sure null can be set as a
WS-Addressing header when version is None.
svn path=/trunk/mcs/; revision=148006
* ReplyChannelBase.cs : added listener property.
* SecurityChannelListener.cs : quick async impl, as ServiceHost has
been updated to prefer async by default, a while ago.
svn path=/trunk/mcs/; revision=147658
* HttpRequestChannel.cs, HttpChannelFactory.cs,
HttpChannelListener.cs, HttpListenerManager.cs :
implemented http client authentication and some of corresponding
service code. Only client works so far.
svn path=/trunk/mcs/; revision=147642
* HttpsTransportBindingElement.cs :
RequireClientCertificate is false by default.
Remove extra #if NET_2_1.
* SecurityBindingElement.cs :
Implement some transport security factory methods.
* TransportSecurityBindingElement.cs :
It is not ISecurityCapabilities anymore.
* BasicHttpBinding.cs : handle transport security properties.
* BasicHttpBindingTest.cs : added transport security related tests.
svn path=/trunk/mcs/; revision=147532
* net_2_1_raw_System.ServiceModel.dll.sources, Dummy_2_1.cs:
reflected a couple of SL3 updates.
* EndpointAddress10.cs : added it to the 2.1 build for SL3 API.
* MessageHeaders.cs
SecurityBindingElement.cs
LocalClientSecuritySettings.cs
TransportSecurityBindingElement.cs
FaultConverter.cs : They are now part of SL3 API.
* ClientCredentials.cs : it is part of SL3 API, so adjusted for it.
svn path=/trunk/mcs/; revision=146952
* 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
* ServiceMetadataExtension.cs : channelDispatchers is keyed by URL,
so it might have been skipped when the URLs are the same for wsdl
and help. So, differentiate flags for mex and help, not to be
exclusive. This fixes random-ish EndpointNotFound for WSDLs.
* HttpListenerManager.cs : dependent fix to ServiceMetadataExtension
changes.
svn path=/trunk/mcs/; revision=144625
* 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
* HttpReplyChannel.cs, HttpChannelListener.cs, HttpListenerManager.cs:
Refactoring on listener manager to correctly handle wsdl and help
requests for such case that they conflict in addressing. Now it
can correctly distinguish service calls, WSDL requests and help
requests when all of them point to "http://localhost/foo.svc"
(which is very common case that the user does not change Http*Url).
* ServiceMetadataExtension.cs : restructure internal channel property
so that http channels can cope with it.
svn path=/trunk/mcs/; revision=144419
* HttpReplyChannel.cs : make sure to release wait lock.
* HttpChannelListener.cs : session channels are not supported, so
remove relevant NIEs.
svn path=/trunk/mcs/; revision=144202
* HttpRequestChannel.cs (WaitEnd): Neither Moonlight nor MonoTouch
support contexts so we call the non-overloaded WaitOne method
(which defaults to false).
svn path=/trunk/mcs/; revision=144200
* 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
* CommunicationObject.cs : OnOpening() and OnOpened() require calls
to base methods. This resulted in not a few changes everywhere.
* ChannelDispatcher.cs : OnOpened/OnOpening constraints related
changes were required here too. Actually it simplified code.
* InstanceContext.cs : new constraints on CommunicationObject
required calls to base methods.
* ChannelFactory.cs : ditto. Actually changed timing to call
Open() on the internal factory.
* ServiceHostBase.cs : removed DoOpen() which is almost extra now.
Added temporary IMetadataExchange workaround.
svn path=/trunk/mcs/; revision=143829
* 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
* HttpReplyChannel.cs : lock list when releasing its content contexts.
* AspNetReplyChannel.cs : send EndRequest() to handler when it is
closing.
svn path=/trunk/mcs/; revision=143497