diff options
author | Atsushi Eno <atsushieno@gmail.com> | 2009-07-28 07:21:20 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@gmail.com> | 2009-07-28 07:21:20 +0400 |
commit | fb60368a09eb39bec39e165ad335efbd07ea893e (patch) | |
tree | 1f84ad61c6803c09839d6288290281439206b15e /mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher | |
parent | 5665bc31c910253668c7dbf722222600392bc314 (diff) |
2009-07-28 Atsushi Enomoto <atsushi@ximian.com>
* OutgoingWebRequestContext.cs : implement.
* WebMessageFormatter.cs : apply OutgoingRequest if available.
svn path=/trunk/mcs/; revision=138782
Diffstat (limited to 'mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher')
-rw-r--r-- | mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog index eb919ace3b2..6912026141e 100644 --- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog +++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/ChangeLog @@ -1,3 +1,7 @@ +2009-07-28 Atsushi Enomoto <atsushi@ximian.com> + + * WebMessageFormatter.cs : apply OutgoingRequest if available. + 2008-04-16 Atsushi Enomoto <atsushi@ximian.com> * WebMessageFormatter.cs : now that ReadObject() verifies diff --git a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs index 43461125fe6..6dac240c24e 100644 --- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs +++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs @@ -194,6 +194,10 @@ namespace System.ServiceModel.Description var hp = new HttpRequestMessageProperty (); hp.Method = Info.Method; + + // FIXME: isn't it always null? + if (WebOperationContext.Current != null) + WebOperationContext.Current.OutgoingRequest.Apply (hp); // FIXME: set hp.SuppressEntityBody for some cases. ret.Properties.Add (HttpRequestMessageProperty.Name, hp); |