Commit Graph
13 Commits
Author SHA1 Message Date
Atsushi Eno bf909bcbd0 fix bug #11335. 2014-01-10 19:04:58 +09:00
Marek Safar e3484720bb Add MOBILE defines to 4.0 code 2012-12-04 18:47:02 +01:00
Miguel de Icaza 8c810e02a3 Apply patch from Mario Kosmiskaso fix bug 1209: Patch to correctly expose WebOperationContext.IncomingResponse
There was apparently no point in the call flow when the reponse message was set
in the context, resulting in WebOperationContext.IncomingResponse always being
null.

After patching WebMessageFormatter to set the response in the context (if
available) the value of WebOperationContext.IncomingResponse was still null. A
bit more investigation showed that IncomingWebResponseContext would construct a
HttpResponseMessageProperty encapsulating the OperationContext at the time the
request was made but before the response was received and cache that object.
That caused the HttpResponseMessageProperty to always have a null value for the
response. The second part of the patch changes this behavior and always creates
a new HttpResponseMessageProperty on GET.
2011-10-16 11:46:00 -04:00
Miguel de Icaza d82f2131ef Apply patch from Mario Kosmiskaso fix bug 1205: Check reference before copying values from Headers
OutgoingWebRequestContext throws a NullReferenceException when making a REST
call. The exception is thrown because there are no Headers in the context.

Attached patch simply tests for null before copying values from Headers.
2011-10-16 11:45:59 -04:00
Atsushi Eno 0dde95d9af Implement 4.0 WebOperationContext.Create[Atom10|Json]Response() methods. 2011-04-08 21:38:09 +09:00
Atsushi Eno c0c0b38f2c Enable behaviors in mobile profiles for WebHttpBinding. 2011-03-16 20:54:03 +09:00
Atsushi Eno b5688b9e2d add experimental monotouch build.
svn path=/trunk/mcs/; revision=144701
2009-10-23 02:37:20 +00:00
Atsushi Eno ee5a4c6806 2009-10-09 Atsushi Enomoto <[email protected]>
* WebServiceHost.cs : call base.OnOpening() here too.

	* WebScriptServiceHostFactory.cs : call base.OnOpening() here too.


svn path=/trunk/mcs/; revision=143837
2009-10-09 08:18:33 +00:00
Atsushi Eno 5091bf6144 2009-09-04 Atsushi Enomoto <[email protected]>
* OutgoingWebResponseContext.cs : add missing methods.


svn path=/trunk/mcs/; revision=141317
2009-09-04 10:43:30 +00:00
Atsushi Eno e0606b9a87 2009-09-01 Atsushi Enomoto <[email protected]>
* WebOperationContext.cs : Current is automatically created (even
	  without WebHttpBehavior or WebChannelFactory).
	* IncomingWebRequestContext.cs, IncomingWebResponseContext.cs:
	  WebOperationContext could be created regardless of whether it is
	  request or not. So do not premise incoming members existence.

	* WebOperationContextTest.cs : new test.
	* WebInvokeAttributeTest.cs : new test, not working.

	* System.ServiceModel.Web_test.dll.sources :
	  added WebOperationContextTest.cs.


svn path=/trunk/mcs/; revision=141005
2009-09-01 07:07:30 +00:00
Atsushi Eno 760543f402 2009-08-11 Atsushi Enomoto <[email protected]>
* WebChannelFactory.cs : added missing constructors.


svn path=/trunk/mcs/; revision=139699
2009-08-11 11:08:13 +00:00
Atsushi Eno fb60368a09 2009-07-28 Atsushi Enomoto <[email protected]>
* OutgoingWebRequestContext.cs : implement.

	* WebMessageFormatter.cs : apply OutgoingRequest if available.


svn path=/trunk/mcs/; revision=138782
2009-07-28 03:21:20 +00:00
Jb Evain 982e3b35a4 move to from olive to mcs
svn path=/trunk/mcs/; revision=111188
2008-08-20 21:25:05 +00:00