diff options
author | Atsushi Eno <atsushieno@veritas-vos-liberabit.com> | 2011-10-25 19:35:57 +0400 |
---|---|---|
committer | Atsushi Eno <atsushieno@veritas-vos-liberabit.com> | 2011-10-25 19:35:57 +0400 |
commit | 9f3efdc59e489b6a30c425760896796cde1dc6a3 (patch) | |
tree | 5b4c06a26343e2f60baaf1c5cacb68678514332c /mcs/class/System.ServiceModel.Web | |
parent | f04c82230aaf07888f6b1cfa1f54aebf0d302c4b (diff) |
Fix NET_2_1 builds.
Diffstat (limited to 'mcs/class/System.ServiceModel.Web')
-rw-r--r-- | mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs | 2 |
1 files changed, 2 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 1cb5eef442b..fde0297a29c 100644 --- a/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs +++ b/mcs/class/System.ServiceModel.Web/System.ServiceModel.Dispatcher/WebMessageFormatter.cs @@ -386,10 +386,12 @@ namespace System.ServiceModel.Dispatcher throw new ArgumentNullException ("parameters"); CheckMessageVersion (message.Version); +#if !NET_2_1 if (OperationContext.Current != null) { // Set response in the context OperationContext.Current.IncomingMessage = message; } +#endif if (message.IsEmpty) return null; // empty message, could be returned by HttpReplyChannel. |