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/WebMessageFormatter.cs | |
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/WebMessageFormatter.cs')
-rw-r--r-- | mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs | 4 |
1 files changed, 4 insertions, 0 deletions
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); |