Commit Graph
443 Commits
Author SHA1 Message Date
Sebastien Pouliot 8556ef9018 2009-10-15 Sebastien Pouliot <[email protected]>
* 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
2009-10-15 12:53:31 +00:00
Atsushi Eno 048903c03e 2009-10-13 Atsushi Enomoto <[email protected]>
* 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
2009-10-13 12:12:49 +00:00
Atsushi Eno 2e1a9a1103 2009-10-13 Atsushi Enomoto <[email protected]>
* CommunicationObject.cs : give better state error description.


svn path=/trunk/mcs/; revision=144004
2009-10-13 11:32:20 +00:00
Atsushi Eno e4fe97dc46 2009-10-09 Atsushi Enomoto <[email protected]>
* 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
2009-10-09 07:30:39 +00:00
Atsushi Eno 533c8a0eba 2009-10-07 Atsushi Enomoto <[email protected]>
* IHttpCookieContainer.cs : new 2.1-only interface (no use).

	* net_2_1_System.ServiceModel.dll.sources :
	  add IHttpCookieContainer.cs.


svn path=/trunk/mcs/; revision=143593
2009-10-07 02:12:46 +00:00
Atsushi Eno f85fb44369 2009-10-06 Atsushi Enomoto <[email protected]>
* 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
2009-10-06 18:07:13 +00:00
Atsushi Eno 1b211df0d6 2009-10-06 Atsushi Enomoto <[email protected]>
* 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
2009-10-06 09:32:38 +00:00
Atsushi Eno e9fdeaa1a6 2009-10-06 Atsushi Enomoto <[email protected]>
* 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
2009-10-06 09:25:24 +00:00
Atsushi Eno ba7094581d 2009-10-06 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : remove todo.
	* ReplyChannelBase.cs : add comment.


svn path=/trunk/mcs/; revision=143495
2009-10-06 09:21:27 +00:00
Atsushi Eno 906dd20f80 2009-10-02 Astushi Enomoto <[email protected]>
* 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
2009-10-02 11:24:40 +00:00
Atsushi Eno 061db132e8 2009-10-02 Atsushi Enomoto <[email protected]>
* HttpReplyChannel.cs, AspNetReplyChannel.cs, AspNetRequestContext.cs:
	  asp.net response was not written correctly.
	  Fill HttpRequestMessageProperty to get handle WSDL requests
	  processed in ServiceMetadataExtension without NRE.
	  Remove wrong HttpListenerContext iteration at Abort and Close in
	  common base class and move it to non-asp derived channel.


svn path=/trunk/mcs/; revision=143244
2009-10-02 05:37:15 +00:00
Atsushi Eno bfd1ab4d0f 2009-10-02 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : remove unused code.


svn path=/trunk/mcs/; revision=143243
2009-10-02 05:22:46 +00:00
Jb Evain fe904e9681 2009-09-30 Jb Evain <[email protected]>
* HttpRequestChannel.cs: When compiling for MonoTouch, avoid
	to use any of the remoting features.


svn path=/trunk/mcs/; revision=142970
2009-09-30 08:43:02 +00:00
Atsushi Eno fe21efeb9c 2009-09-30 Atsushi Enomoto <[email protected]>
* 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
2009-09-30 03:47:41 +00:00
Atsushi Eno f98f78d7b8 tsushi Enomoto <[email protected]>
* HttpReplyChannel.cs : remove extra field.


svn path=/trunk/mcs/; revision=142908
2009-09-29 17:21:15 +00:00
Atsushi Eno a50fdd29cd 2009-09-29 Atsushi Enomoto <[email protected]>
* AspNetRequestContext.cs : remove CWL.


svn path=/trunk/mcs/; revision=142893
2009-09-29 16:18:00 +00:00
Atsushi Eno b99731f276 2009-09-29 Atsushi Enomoto <[email protected]>
* AspNetReplyChannel.cs, AspNetRequestContext.cs : close HttpContext
	  only after AspNetRequestContext is closed. Do not close it
	  immediately after receiving the context. (HttpRuntime destructs it
	  and further uses then becomes impossible.)


svn path=/trunk/mcs/; revision=142892
2009-09-29 16:03:35 +00:00
Atsushi Eno 6598a1ace1 2009-09-29 Atsushi Enomoto <[email protected]>
* 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
2009-09-29 15:06:36 +00:00
Atsushi Eno 3f987a1b6f 2009-09-14 Atsushi Enomoto <[email protected]>
* MessagePropertiesTest.cs : new test.

	* MessageProperties.cs : fix CopyProperties() behavior to not
	  clear existing items. Make all properties call this[name].

	* System.ServiceModel_test.dll.sources: add MessagePropertiesTest.cs.


svn path=/trunk/mcs/; revision=141898
2009-09-14 17:03:34 +00:00
Atsushi Eno 7c758401c0 2009-09-14 Atsushi Enomoto <[email protected]>
* HttpTransportBindingElement.cs : fix 2.1 build.


svn path=/trunk/mcs/; revision=141896
2009-09-14 15:41:16 +00:00
Atsushi Eno ed6ea58db0 2009-09-14 Atsushi Enomoto <[email protected]>
* TransportBindingElement.cs : another GetProperty fix, iterate
	  other binding elements.


svn path=/trunk/mcs/; revision=141891
2009-09-14 13:23:01 +00:00
Atsushi Eno 6f0a6b36f1 2007-09-14 Atsushi Enomoto <[email protected]>
* MsmqIntegrationBindingElement.cs : implemented some parts.

	* HttpTransportBindingElement.cs, PeerTransportBindingElement.cs :
	  some GetProperty() implementation.


svn path=/trunk/mcs/; revision=141890
2009-09-14 13:20:21 +00:00
Atsushi Eno 9b00574253 2009-09-14 Atsushi Enomoto <[email protected]>
* HttpListenerManager.cs : release HttpListener and avoid extra
	  close process more than once.


svn path=/trunk/mcs/; revision=141880
2009-09-14 09:01:39 +00:00
Atsushi Eno aa516607c1 2009-09-11 Atsushi Enomoto <[email protected]>
* HttpChannelListener.cs : do not iterate channel list to close
	  channels which in turn removes them from the list while iteration.


svn path=/trunk/mcs/; revision=141773
2009-09-11 15:31:31 +00:00
Atsushi Eno f5d6d3167b 2009-09-06 Atsushi Enomoto <[email protected]>
* ContractDescriptionGenerator.cs : default action name is prepended
	  "urn:", and on the other hand do not add extra '/' in such case.

	* HttpRequestChannel.cs : Fix message version member comparison.
	  Double-quote SOAPAction. Remove extra Exception.
	* HttpReplyChannel.cs : ditto for version comparison. Unquote above.
	* HttpRequestContext.cs : when addressing is None, remove action
	  from the message.


svn path=/trunk/mcs/; revision=141394
2009-09-06 10:32:38 +00:00
Atsushi Eno 47dfe0a55e 2009-09-04 Atsushi Enomoto <[email protected]>
* 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
2009-09-04 09:55:04 +00:00
Atsushi Eno 0a17ae4318 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : apply configuration, and if there is still no
	  endpoint, then add default one.


svn path=/trunk/mcs/; revision=141230
2009-09-03 11:08:35 +00:00
Atsushi Eno e5518a68ff 2009-09-03 Atsushi Enomoto <[email protected]>
* SvcHttpHandler.cs : another URL to make relative.


svn path=/trunk/mcs/; revision=141227
2009-09-03 10:49:35 +00:00
Atsushi Eno b7389dd966 2009-09-03 Atsushi Enomoto <[email protected]>
* 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
2009-09-03 10:13:08 +00:00
Atsushi Eno 96409c115e 2009-09-03 Atsushi Enomoto <[email protected]>
* AspNetRequestContext.cs, HttpRequestContext.cs :
	  fix NRE on HttpListenerContext for AspNetRequestContext (mismatch)
	  by splitting HttpListener-based context out from common code base.


svn path=/trunk/mcs/; revision=141219
2009-09-03 09:52:07 +00:00
Atsushi Eno 5ce2b80051 2009-09-03 Atsushi Enomoto <[email protected]>
* 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
2009-09-03 06:13:18 +00:00
Atsushi Eno d75a16d629 2009-09-02 Atsushi Enomoto <[email protected]>
* SvcHttpHandlerFactory.cs : make use of BuildManager aid. Now it
	  loads types from system assemblies appropriately.


svn path=/trunk/mcs/; revision=141128
2009-09-02 12:48:01 +00:00
Atsushi Eno b98bb73fa6 2009-09-02 Atsushi Enomoto <[email protected]>
* BaseMessagesFormatter.cs :
	  implement XmlBodyWriter.OnCreateBufferedCopy().

	* XmlReaderBodyWriter.cs : implement OnCreateBufferedCopy()
	  for XmlReader input.


svn path=/trunk/mcs/; revision=141111
2009-09-02 10:18:38 +00:00
Atsushi Eno f3bae627cb 2009-09-02 Atsushi Enomoto <[email protected]>
* HttpRequestMessageProperty.cs : fix default values.

	* HttpRequestMessagePropertyTest.cs : new test.

	* System.ServiceModel_test.dll.sources:
	  add HttpRequestMessagePropertyTest.cs


svn path=/trunk/mcs/; revision=141110
2009-09-02 10:16:21 +00:00
Atsushi Eno 7a217b8104 2009-08-31 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs, HttpRequestChannel.cs,
	  ChannelFactoryBase.cs : fix to previous one; allow null Via uri.
	  Check ManualAddressing value and reject address-missing ones.


svn path=/trunk/mcs/; revision=140962
2009-08-31 12:26:49 +00:00
Atsushi Eno 59fceba19b 2009-08-31 Atsushi Enomoto <[email protected]>
* HttpChannelFactory.cs : reject URI mismatch cases when required.

	* HttpTransportBindingElementTest.cs : test for URI mismatch case.


svn path=/trunk/mcs/; revision=140960
2009-08-31 12:10:33 +00:00
Atsushi Eno ef6042e66b 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : When received Connect() from neighbor,
	  add the peer to its internal list.
	  Finally ChatApplication got working.


svn path=/trunk/mcs/; revision=140700
2009-08-26 10:40:05 +00:00
Atsushi Eno d206a94290 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : since the channel factory is per instance,
	  do not reuse factory that is tied to different callback instance.
	  It resolved the issue that mono callback client didn't receive
	  messages from the client itself.


svn path=/trunk/mcs/; revision=140698
2009-08-26 09:51:10 +00:00
Atsushi Eno 48420dfd94 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerNode.cs : use ulong as same as Welcome message value.

	* PeerDuplexChannel.cs : in the Welcome response, return the NodeId
	  of the receiver, not the requestor. It resolved the issue that
	  .NET client didn't send further messages to mono server.


svn path=/trunk/mcs/; revision=140693
2009-08-26 07:16:25 +00:00
Atsushi Eno 0dbe067726 2009-08-26 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : remove some comment on [MC-PRCH] behavior.
	* TcpDuplexSessionChannel.cs, TcpBinaryFrameManager.cs,
	  TcpReplyChannel.cs, TcpRequestChannel.cs,
	  NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs:
	  rename EndRecord handling method to appropriate one.
	  Write EndRecord from recipient too.


svn path=/trunk/mcs/; revision=140687
2009-08-26 05:00:42 +00:00
Atsushi Eno 6a08482396 2009-08-24 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : add PeerFlooder header (see comment).
	  Process PeerTo header to upgrade Message To header. Now mono
	  service accepts mono client (somehow not true for .NET client).


svn path=/trunk/mcs/; revision=140489
2009-08-24 10:13:34 +00:00
Atsushi Eno d2babd367d 2009-08-24 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs, TcpRequestChannel.cs,
	  NamedPipeRequestChannel.cs : no need to add ReplyTo headers.


svn path=/trunk/mcs/; revision=140488
2009-08-24 09:54:17 +00:00
Atsushi Eno 3f9792e4f6 2009-08-24 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : fix PeerTo/PeerVia header namespace.


svn path=/trunk/mcs/; revision=140487
2009-08-24 09:53:28 +00:00
Atsushi Eno dfdea80b4f 2009-08-24 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : check channel state before processing
	  Send and Receive.


svn path=/trunk/mcs/; revision=140474
2009-08-24 08:44:15 +00:00
Atsushi Eno 0acf7fe9ab 2009-08-20 Atsushi Enomoto <[email protected]>
* NamedPipeReplyChannel.cs, NamedPipeRequestChannel.cs,
	  NamedPipeChannelFactory.cs, NamedPipeChannelListener.cs :
	  ongoing works, not working at all yet.

	* System.ServiceModel.dll.sources: add more named pipe files.


svn path=/trunk/mcs/; revision=140341
2009-08-20 14:09:09 +00:00
Atsushi Eno 35c7b8b925 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpChannelListener.cs, TcpReplyChannel.cs :
	  cosmetic cleanup and corrections.


svn path=/trunk/mcs/; revision=140340
2009-08-20 14:07:11 +00:00
Atsushi Eno dde8b27ca0 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpChannelFactory.cs : use expected Via uri.
	  Remove extra NIE stuff that are implemented in base.


svn path=/trunk/mcs/; revision=140339
2009-08-20 14:05:29 +00:00
Atsushi Eno ea9ecf0143 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : remove extra code.


svn path=/trunk/mcs/; revision=140332
2009-08-20 12:41:20 +00:00
Atsushi Eno f3b27c84c8 2009-08-20 Atsushi Enomoto <[email protected]>
* PeerDuplexChannel.cs : ongoing implementation towards get callback
	  replies on peer connector clients (not working as duplex client
	  callback is not working yet).


svn path=/trunk/mcs/; revision=140329
2009-08-20 11:32:57 +00:00
Atsushi Eno 653f2127b4 2009-08-20 Atsushi Enomoto <[email protected]>
* TcpDuplexSessionChannel.cs : in callback client channels,
	  OperationContext.IncomingMessageHeaders is null.


svn path=/trunk/mcs/; revision=140320
2009-08-20 09:58:31 +00:00